1 /* License: public domain -or- http://www.wtfpl.net/txt/copying/ */
13 #define SHA1_DIGEST_LENGTH 20
15 typedef struct SHA1_CTX
{
17 uint32_t state
[5], curlen
;
18 unsigned char buf
[64];
19 /*const void *data; */
22 /* return value is non-zero/non-NULL on success */
23 extern int SHA1_Init(SHA1_CTX
*c
);
24 extern int SHA1_Update(SHA1_CTX
*c
, const void *data
, size_t len
);
25 extern int SHA1_Final(unsigned char *md
, SHA1_CTX
*c
);
26 extern unsigned char *SHA1(const void *data
, size_t len
, unsigned char *md
);