Drizzled Public API Documentation

sha1.h
Go to the documentation of this file.
1 #pragma once
2 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
24 #define SHA1_BLOCK_LENGTH 64
25 #define SHA1_DIGEST_LENGTH 20
26 #define SHA1_DIGEST_STRING_LENGTH (SHA1_DIGEST_LENGTH * 2 + 1)
27 
28 typedef struct {
29  uint32_t state[5];
30  uint64_t count;
31  uint8_t buffer[SHA1_BLOCK_LENGTH];
32 } SHA1_CTX;
33 
34 void SHA1Init(SHA1_CTX *);
35 void SHA1Pad(SHA1_CTX *);
36 void SHA1Transform(uint32_t [5], const uint8_t [SHA1_BLOCK_LENGTH]);
37 void SHA1Update(SHA1_CTX *, const uint8_t *, size_t);
38 void SHA1Final(uint8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *);
39 
42 #ifdef __cplusplus
43 }
44 #endif
Definition: sha1.h:28