install.sh: expand @cfg_name@ in processed scripts
[girocco.git] / src / lt1.h
blob73244613adf12bc32a336dd35124a330645adb40
1 /* License: public domain -or- http://www.wtfpl.net/txt/copying/ */
3 #ifndef LT1_H
4 #define LT1_H
6 #include <stddef.h>
7 #include <stdint.h>
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
13 #define SHA1_DIGEST_LENGTH 20
15 typedef struct SHA1_CTX {
16 uint64_t length;
17 uint32_t state[5], curlen;
18 unsigned char buf[64];
19 /*const void *data; */
20 } SHA1_CTX;
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);
28 #ifdef __cplusplus
30 #endif
32 #endif /* LT1_H */