|
Leancrypto 1.7.2
Post-Quantum Cryptographic Library
|
Include dependency graph for lc_hmac.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | LC_HMAC_CTX_ON_STACK(name, hashname) |
| Allocate stack memory for the HMAC context. More... | |
Functions | |
| int | lc_hmac_init (struct lc_hmac_ctx *hmac_ctx, const uint8_t *key, size_t keylen) |
| Initialize HMAC context. More... | |
| void | lc_hmac_reinit (struct lc_hmac_ctx *hmac_ctx) |
| Re-initialize HMAC context after a hmac_final operation. More... | |
| void | lc_hmac_update (struct lc_hmac_ctx *hmac_ctx, const uint8_t *in, size_t inlen) |
| Update HMAC. More... | |
| void | lc_hmac_final (struct lc_hmac_ctx *hmac_ctx, uint8_t *mac) |
| Calculate HMAC mac. More... | |
| int | lc_hmac_alloc (const struct lc_hash *hash, struct lc_hmac_ctx **hmac_ctx) |
| Allocate HMAC context on heap. More... | |
| void | lc_hmac_zero_free (struct lc_hmac_ctx *hmac_ctx) |
| Zeroize and free HMAC context. More... | |
| void | lc_hmac_zero (struct lc_hmac_ctx *hmac_ctx) |
| Zeroize HMAC context allocated with either HMAC_CTX_ON_STACK or hmac_alloc. More... | |
| enum lc_alg_status_val | lc_hmac_alg_status (const struct lc_hash *hash) |
| Obtain algorithm status. More... | |
| enum lc_alg_status_val | lc_hmac_ctx_alg_status (const struct lc_hash_ctx *ctx) |
| Obtain algorithm status. More... | |
| size_t | lc_hmac_macsize (struct lc_hmac_ctx *hmac_ctx) |
| Return the MAC size. More... | |
| int | lc_hmac (const struct lc_hash *hash, const uint8_t *key, size_t keylen, const uint8_t *in, size_t inlen, uint8_t *mac) |
| Calculate HMAC - one-shot. More... | |