]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/sha1.h
When invoking the mysql script, pass in $*
[bacula/bacula] / bacula / src / lib / sha1.h
index 35e53d979df37be2f933c65852cd5cd24656cd30..4bcf470d286c8d40afd8b6c1a48e693da92ba2e2 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
  *
  */
 
@@ -86,7 +86,7 @@ typedef struct SHA1Context
     uint32_t Length_High;           /* Message length in bits      */
 
                                /* Index into message block array   */
-    int_least16_t Message_Block_Index;
+    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