nrfxlib API 2.8.99
|
void ocrypto_hmac_sha1 | ( | uint8_t | r[(20)], |
const uint8_t * | key, | ||
size_t | key_len, | ||
const uint8_t * | in, | ||
size_t | in_len ) |
#include <crypto/nrf_oberon/include/ocrypto_hmac_sha1.h>
HMAC-SHA1 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.
[out] | r | HMAC output. |
key | HMAC key. | |
key_len | Length of key . | |
in | Input data. | |
in_len | Length of in . |