3
* @brief SHA1 Declarations
14
* @addtogroup sha1 SHA-1 in C
15
* By Steve Reid <steve@edmweb.com>
20
#define SHA1_BLOCK_LENGTH 64
21
#define SHA1_DIGEST_LENGTH 20
22
#define SHA1_DIGEST_STRING_LENGTH (SHA1_DIGEST_LENGTH * 2 + 1)
27
uint8_t buffer[SHA1_BLOCK_LENGTH];
30
void SHA1Init(SHA1_CTX *);
31
void SHA1Pad(SHA1_CTX *);
32
void SHA1Transform(uint32_t [5], const uint8_t [SHA1_BLOCK_LENGTH]);
33
void SHA1Update(SHA1_CTX *, const uint8_t *, size_t);
34
void SHA1Final(uint8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *);