libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
#include <gimbal_sha1.h>
Data Fields | |
uint32_t | state [5] |
uint32_t | count [2] |
unsigned char | buffer [64] |
Related Symbols | |
(Note that these are not member symbols.) | |
const char * | GblSha1_string (const uint8_t digest[20], char buffer[80]) |
Incremental hashing | |
Methods for operating on an SHA1 context | |
void | GblSha1_init (GblSha1Context *pSelf) |
void | GblSha1_update (GblSha1Context *pSelf, const void *pData, size_t length) |
void | GblSha1_final (GblSha1Context *pSelf, uint8_t digest[20]) |
Context structure used for maintaining SHA1 hashing state.
Definition at line 37 of file gimbal_sha1.h.
|
related |
Initializes the given SHA1 context.
|
related |
Adds the data in pData
of length
bytes to the running SHA1 hash context.
|
related |
Finalizes the running SHA1 hash context, returning its digest.
|
related |
Returns the display-friendly hexadecimal form of the given digest, with each 32-bit word separated by a space.
uint32_t GblSha1Context::state[5] |
Current accumulated hash state.
Definition at line 38 of file gimbal_sha1.h.
uint32_t GblSha1Context::count[2] |
Running counter of # of hashed blocks.
Definition at line 39 of file gimbal_sha1.h.
unsigned char GblSha1Context::buffer[64] |
Buffer containing current 512-bit block of data.
Definition at line 40 of file gimbal_sha1.h.