Context structure used for maintaining SHA1 hashing state.
void GblSha1_final(GblSha1Context *pSelf, uint8_t digest[20])
Finalizes the running SHA1 hash context, returning its digest.
uint32_t count[2]
Running counter of # of hashed blocks.
uint32_t state[5]
Current accumulated hash state.
unsigned char buffer[64]
Buffer containing current 512-bit block of data.
const char * GblSha1_string(const uint8_t digest[20], char buffer[80])
Returns the display-friendly hexadecimal form of the given digest, with each 32-bit word separated by...
void GblSha1_init(GblSha1Context *pSelf)
Initializes the given SHA1 context.
void GblSha1_update(GblSha1Context *pSelf, const void *pData, size_t length)
Adds the data in pData of length bytes to the running SHA1 hash context.