Root/package/ead/src/tinysrp/t_sha.h

1#ifndef T_SHA_H
2#define T_SHA_H
3
4#if !defined(P)
5#ifdef __STDC__
6#define P(x) x
7#else
8#define P(x) ()
9#endif
10#endif
11
12#define SHA_DIGESTSIZE 20
13
14typedef unsigned int uint32;
15
16typedef struct {
17    uint32 state[5];
18    uint32 count[2];
19    unsigned char buffer[64];
20} SHA1_CTX;
21
22void SHA1Init P((SHA1_CTX* context));
23void SHA1Update P((SHA1_CTX* context, const unsigned char* data, unsigned int len));
24void SHA1Final P((unsigned char digest[20], SHA1_CTX* context));
25
26#endif /* T_SHA_H */
27

Archive Download this file



interactive