~ubuntu-branches/ubuntu/utopic/dropbear/utopic-proposed

« back to all changes in this revision

Viewing changes to libtomcrypt/demos/encrypt.c

  • Committer: Bazaar Package Importer
  • Author(s): Matt Johnston
  • Date: 2005-12-08 19:20:21 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051208192021-nyp9rwnt77nsg6ty
Tags: 0.47-1
* New upstream release.
* SECURITY: Fix incorrect buffer sizing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
/* ie: ./encrypt blowfish story.txt story.ct */
8
8
/* ./encrypt -d blowfish story.ct story.pt */
9
9
 
10
 
#include <mycrypt.h>
 
10
#include <tomcrypt.h>
11
11
 
12
12
int errno;
13
13
 
69
69
#ifdef SKIPJACK
70
70
  register_cipher (&skipjack_desc);
71
71
#endif
 
72
#ifdef KHAZAD
 
73
  register_cipher (&khazad_desc);
 
74
#endif
 
75
#ifdef ANUBIS
 
76
  register_cipher (&anubis_desc);
 
77
#endif
72
78
 
73
79
   if (register_hash(&sha256_desc) == -1) {
74
80
      printf("Error registering SHA256\n");
229
235
   }
230
236
   return 0;
231
237
}
 
238
 
 
239
/* $Source: /cvs/libtom/libtomcrypt/demos/encrypt.c,v $ */
 
240
/* $Revision: 1.2 $ */
 
241
/* $Date: 2005/05/05 14:35:56 $ */