5 #ifndef __SHA1_INCLUDE_
6 #define __SHA1_INCLUDE_
9 #include <openssl/sha.h>
11 #define SHA1_CTX SHA_CTX
12 #define SHA1_SIGNATURE_SIZE SHA_DIGEST_LENGTH
16 #ifndef SHA1_SIGNATURE_SIZE
18 #define SHA1_SIGNATURE_SIZE SHA_DIGESTSIZE
20 #define SHA1_SIGNATURE_SIZE 20
27 unsigned char buffer[64];
30 extern void SHA1_Init(SHA1_CTX *);
31 extern void SHA1_Update(SHA1_CTX *, const unsigned char *, unsigned int);
32 extern void SHA1_Final(unsigned char[SHA1_SIGNATURE_SIZE], SHA1_CTX *);
35 #endif /* __SHA1_INCLUDE_ */