libusual  0.1
Functions
usual/crypto/hmac.h File Reference

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.

Detailed Description

HMAC-SHA1 implementation (RFC2104).


Function Documentation

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.