libusual
0.1
|
HMAC-SHA1 implementation (RFC2104). More...
Functions | |
struct HMAC * | hmac_new (const struct DigestInfo *impl, const void *key, unsigned int key_len, CxMem *cx) |
Create context with key. | |
void | hmac_reset (struct HMAC *ctx) |
Initialize context. | |
void | hmac_update (struct HMAC *ctx, const void *data, unsigned int len) |
Hash more data. | |
void | hmac_final (struct HMAC *ctx, uint8_t *dst) |
Get final result. |
HMAC-SHA1 implementation (RFC2104).
struct HMAC* hmac_new | ( | const struct DigestInfo * | impl, |
const void * | key, | ||
unsigned int | key_len, | ||
CxMem * | cx | ||
) | [read] |
Create context with key.
void hmac_reset | ( | struct HMAC * | ctx | ) |
Initialize context.
void hmac_update | ( | struct HMAC * | ctx, |
const void * | data, | ||
unsigned int | len | ||
) |
Hash more data.
void hmac_final | ( | struct HMAC * | ctx, |
uint8_t * | dst | ||
) |
Get final result.