Infineon Logo AIROC BTSDK v4.4 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_hal_crypto.h File Reference

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...
 

Detailed Description

Definitions of the crypto functions: sha2_hmac.

Function Documentation

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 )

Parameters
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