AIROC™ BTSDK v4.9 - Documentation | ||||
Definitions of the crypto functions: sha2_hmac. More...
Functions | |
void | wiced_sha2_hmac (const unsigned char *key, uint32_t keylen, const unsigned char *input, uint32_t ilen, unsigned char output[32], int32_t is224) |
Calculated HMAC-SHA. More... | |
Definitions of the crypto functions: sha2_hmac.
void wiced_sha2_hmac | ( | const unsigned char * | key, |
uint32_t | keylen, | ||
const unsigned char * | input, | ||
uint32_t | ilen, | ||
unsigned char | output[32], | ||
int32_t | is224 | ||
) |
Calculated HMAC-SHA.
Output = HMAC-SHA-256(224)( hmac key, input buffer )
key | - HMAC secret key |
keylen | - length of the HMAC key |
input | - buffer holding the data |
ilen | - length of the input data |
output | - HMAC-SHA-224/256 result |
is224 | - 0 = use SHA256, 1 = use SHA224 |