[BACK]Return to sha1.h CVS log [TXT][DIR] Up to [local] / src / include

Diff for /src/include/sha1.h between version 1.2 and 1.3

version 1.2, 1996/09/29 18:30:49 version 1.3, 1996/09/30 03:55:48
Line 10 
Line 10 
 #ifndef _SHA1_H  #ifndef _SHA1_H
 #define _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 */  /* The SHA1 block size and message digest sizes, in bytes */
   
 #define SHA1_BLOCKSIZE   64  #define SHA1_BLOCKSIZE   64
Line 23 
Line 18 
 /* The structure for storing SHA1 info */  /* The structure for storing SHA1 info */
   
 typedef struct {  typedef struct {
                LONG digest[ 5 ];            /* Message digest */          u_int32_t digest[ 5 ];          /* Message digest */
                LONG countLo, countHi;       /* 64-bit bit count */          u_int32_t countLo, countHi;     /* 64-bit bit count */
                LONG data[ 16 ];             /* SHA1 data buffer */          u_int32_t data[ 16 ];           /* SHA1 data buffer */
                } SHA1_INFO;  } SHA1_INFO;
   
 /* The next def turns on the change to the algorithm introduced by NIST at  /* 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   * the behest of the NSA.  It supposedly corrects a weakness in the original
Line 53 
Line 48 
  */   */
 #define NEW_SHA1  #define NEW_SHA1
   
 void sha1Init (SHA1_INFO *);  void sha1Init __P((SHA1_INFO *));
 void sha1Transform (SHA1_INFO *);  void sha1Transform __P((SHA1_INFO *));
 void sha1Final (SHA1_INFO *);  void sha1Final __P((SHA1_INFO *));
 void sha1Update (SHA1_INFO *, BYTE *, int);  void sha1Update __P((SHA1_INFO *, unsigned char *, int));
   
 #endif /* _SHA1_H */  #endif /* _SHA1_H */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3