]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/sha1.h
kes Add dynamic dll entry point for SHGetFolderPath to Win32 code.
[bacula/bacula] / bacula / src / lib / sha1.h
index 35e53d979df37be2f933c65852cd5cd24656cd30..437fe19c1bc3d8b175e02d2e8645f2dcbcaa8b13 100644 (file)
@@ -58,7 +58,7 @@
  *    name              meaning
  *  uint32_t         unsigned 32 bit integer
  *  uint8_t          unsigned 8 bit integer (i.e., unsigned char)
- *  int_least16_t    integer of >= 16 bits
+ *  int32_t          integer of 32 bits
  *
  */
 
@@ -85,8 +85,8 @@ typedef struct SHA1Context
     uint32_t Length_Low;            /* Message length in bits      */
     uint32_t Length_High;           /* Message length in bits      */
 
-                               /* Index into message block array   */
-    int_least16_t Message_Block_Index;
+                              /* Index into message block array   */
+    int32_t Message_Block_Index;
     uint8_t Message_Block[64];      /* 512-bit message blocks      */
 
     int Computed;               /* Is the digest computed?         */
@@ -97,11 +97,11 @@ typedef struct SHA1Context
  *  Function Prototypes
  */
 
-int SHA1Reset(  SHA1Context *);
-int SHA1Input(  SHA1Context *,
-                const uint8_t *,
-                unsigned int);
-int SHA1Result( SHA1Context *,
-                uint8_t Message_Digest[SHA1HashSize]);
+int SHA1Init(SHA1Context *);
+int SHA1Update(SHA1Context *,
+              const uint8_t *,
+              unsigned int);
+int SHA1Final(SHA1Context *,
+              uint8_t Message_Digest[SHA1HashSize]);
 
 #endif