nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ ocrypto_hmac_sha256()

void ocrypto_hmac_sha256 ( uint8_t  r[(32)],
const uint8_t *  key,
size_t  key_len,
const uint8_t *  in,
size_t  in_len 
)

#include <crypto/nrf_oberon/include/ocrypto_hmac_sha256.h>

HMAC-SHA256 algorithm.

The input message in is authenticated using the key key. The computed authenticator is put into r. To verify the authenticator, the recipient needs to recompute the HMAC authenticator and can then compare it with the received authenticator.

Parameters
[out]rHMAC output.
keyHMAC key.
key_lenLength of key.
inInput data.
in_lenLength of in.