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

◆ ocrypto_hmac_sha256_final()

void ocrypto_hmac_sha256_final ( ocrypto_hmac_sha256_ctx *  ctx,
uint8_t  r[(32)] 
)

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

HMAC-SHA-256 output.

The generator state ctx is updated to finalize the HMAC for the previously processed message chunks. The authenticator is put into r.

Parameters
ctxGenerator state.
[out]rGenerated HMAC value.
Remarks
Initialization of the generator state ctx through ocrypto_hmac_sha256_init is required before this function can be called.
After return, the generator state ctx must no longer be used with ocrypto_hmac_sha256_update and ocrypto_hmac_sha256_final unless it is reinitialized using ocrypto_hmac_sha256_init.