updates. New data types.
[silc.git] / lib / silccrypt / sha1_internal.h
index 15ae9bd789eb7166879e44617fbcfba416f0e0c0..4fce19013ceabf637f4476df5d0f94ba70b4ac31 100644 (file)
@@ -20,15 +20,15 @@ A million repetitions of "a"
 
 /* Context declaration */
 typedef struct {
-    unsigned long state[5];
-    unsigned long count[2];
+    uint32 state[5];
+    uint32 count[2];
     unsigned char buffer[64];
 } SHA1_CTX;
 
 /* Function forward declerations */
-void SHA1Transform(unsigned long state[5], unsigned char buffer[64]);
+void SHA1Transform(uint32 state[5], unsigned char buffer[64]);
 void SHA1Init(SHA1_CTX* context);
-void SHA1Update(SHA1_CTX* context, unsigned char* data, unsigned int len);
+void SHA1Update(SHA1_CTX* context, unsigned char* data, uint32 len);
 void SHA1Final(unsigned char digest[20], SHA1_CTX* context);
 
 #endif