nrfxlib API 3.3.99
Loading...
Searching...
No Matches

HMAC algorithm based on SHA256. More...

Files

file  ocrypto_hmac_sha256.h
 HMAC algorithm based on SHA256.
 

Macros

#define ocrypto_hmac_sha256_BYTES   (32)
 

Functions

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

Incremental HMAC-SHA256 generator

This group of functions can be used to incrementally compute the HMAC-SHA256 authenticator for a given message.

void ocrypto_hmac_sha256_init (ocrypto_hmac_sha256_ctx *ctx, const uint8_t *key, size_t key_len)
 
void ocrypto_hmac_sha256_update (ocrypto_hmac_sha256_ctx *ctx, const uint8_t *in, size_t in_len)
 
void ocrypto_hmac_sha256_final (ocrypto_hmac_sha256_ctx *ctx, uint8_t r[(32)])
 

Detailed Description

HMAC algorithm based on SHA256.

HMAC-SHA256 is an algorithm for message authentication using the cryptographic hash function SHA256 and a reusable secret key. Users in possession of the key can verify the integrity and authenticity of the message.

See also
RFC - HMAC: Keyed-Hashing for Message Authentication