nrfxlib API 0.1.0
Loading...
Searching...
No Matches
ocrypto_hmac_sha1.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "ocrypto_sha1.h"

Go to the source code of this file.

Macros

#define ocrypto_hmac_sha1_BYTES   (20)
 

Functions

void ocrypto_hmac_sha1 (uint8_t r[(20)], const uint8_t *key, size_t key_len, const uint8_t *in, size_t in_len)
 
void ocrypto_hmac_sha1_aad (uint8_t r[(20)], 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-SHA-1 generator.

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

void ocrypto_hmac_sha1_init (ocrypto_hmac_sha1_ctx *ctx, const uint8_t *key, size_t key_len)
 
void ocrypto_hmac_sha1_update (ocrypto_hmac_sha1_ctx *ctx, const uint8_t *in, size_t in_len)
 
void ocrypto_hmac_sha1_final (ocrypto_hmac_sha1_ctx *ctx, uint8_t r[(20)])