=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/sha1.h,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/include/sha1.h 1996/09/29 18:30:49 1.2 --- src/include/sha1.h 1996/09/30 03:55:48 1.3 *************** *** 10,20 **** #ifndef _SHA1_H #define _SHA1_H - /* Useful defines/typedefs */ - - typedef unsigned char BYTE; - typedef u_int32_t LONG; - /* The SHA1 block size and message digest sizes, in bytes */ #define SHA1_BLOCKSIZE 64 --- 10,15 ---- *************** *** 23,32 **** /* The structure for storing SHA1 info */ typedef struct { ! LONG digest[ 5 ]; /* Message digest */ ! LONG countLo, countHi; /* 64-bit bit count */ ! LONG data[ 16 ]; /* SHA1 data buffer */ ! } SHA1_INFO; /* The next def turns on the change to the algorithm introduced by NIST at * the behest of the NSA. It supposedly corrects a weakness in the original --- 18,27 ---- /* The structure for storing SHA1 info */ typedef struct { ! u_int32_t digest[ 5 ]; /* Message digest */ ! u_int32_t countLo, countHi; /* 64-bit bit count */ ! u_int32_t data[ 16 ]; /* SHA1 data buffer */ ! } SHA1_INFO; /* The next def turns on the change to the algorithm introduced by NIST at * the behest of the NSA. It supposedly corrects a weakness in the original *************** *** 53,61 **** */ #define NEW_SHA1 ! void sha1Init (SHA1_INFO *); ! void sha1Transform (SHA1_INFO *); ! void sha1Final (SHA1_INFO *); ! void sha1Update (SHA1_INFO *, BYTE *, int); #endif /* _SHA1_H */ --- 48,56 ---- */ #define NEW_SHA1 ! void sha1Init __P((SHA1_INFO *)); ! void sha1Transform __P((SHA1_INFO *)); ! void sha1Final __P((SHA1_INFO *)); ! void sha1Update __P((SHA1_INFO *, unsigned char *, int)); #endif /* _SHA1_H */