28#ifndef OCRYPTO_HMAC_SHA256_H
29#define OCRYPTO_HMAC_SHA256_H
45#define ocrypto_hmac_sha256_BYTES (32)
50 ocrypto_sha256_ctx sha;
52} ocrypto_hmac_sha256_ctx;
74 ocrypto_hmac_sha256_ctx *ctx,
75 const uint8_t* key,
size_t key_len);
92 ocrypto_hmac_sha256_ctx *ctx,
93 const uint8_t *in,
size_t in_len);
112 ocrypto_hmac_sha256_ctx *ctx,
132 const uint8_t* key,
size_t key_len,
133 const uint8_t* in,
size_t in_len);
148 const uint8_t* key,
size_t key_len,
149 const uint8_t* in,
size_t in_len,
150 const uint8_t* aad,
size_t aad_len);
void ocrypto_hmac_sha256_final(ocrypto_hmac_sha256_ctx *ctx, uint8_t r[(32)])
void ocrypto_hmac_sha256_init(ocrypto_hmac_sha256_ctx *ctx, const uint8_t *key, size_t key_len)
void ocrypto_hmac_sha256(uint8_t r[(32)], const uint8_t *key, size_t key_len, const uint8_t *in, size_t in_len)
#define ocrypto_hmac_sha256_BYTES
Definition ocrypto_hmac_sha256.h:45
void ocrypto_hmac_sha256_update(ocrypto_hmac_sha256_ctx *ctx, 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)
SHA256 algorithm, a member of the SHA2 family, with 256 bit outputs.