53 #ifndef SHA1_DIGEST_LENGTH
54 #define SHA1_DIGEST_LENGTH 20
77 void hmac_sha1( uint8_t* key, int32_t key_length,
78 const uint8_t* data, uint32_t data_length,
79 uint8_t* mac, int32_t* mac_length );
101 void hmac_sha1( uint8_t* key, int32_t key_length,
102 const uint8_t* data[], uint32_t data_length[],
103 uint8_t* mac, int32_t* mac_length );
136 void hmacSha1Ctx(
void* ctx,
const uint8_t* data, uint32_t data_length,
137 uint8_t* mac, int32_t* mac_length );
158 void hmacSha1Ctx(
void* ctx,
const uint8_t* data[], uint32_t data_length[],
159 uint8_t* mac, int32_t* mac_length );
void hmacSha1Ctx(void *ctx, const uint8_t *data, uint32_t data_length, uint8_t *mac, int32_t *mac_length)
Compute SHA1 HMAC.
void freeSha1HmacContext(void *ctx)
Free SHA1 HMAC context.
void hmac_sha1(uint8_t *key, int32_t key_length, const uint8_t *data, uint32_t data_length, uint8_t *mac, int32_t *mac_length)
Compute SHA1 HMAC.
void * createSha1HmacContext(uint8_t *key, int32_t key_length)
Create and initialize a SHA1 HMAC context.