|
Leancrypto 1.6.0
Post-Quantum Cryptographic Library
|
#include "ext_headers.h"#include "lc_aead.h"#include "lc_memory_support.h"#include "lc_kmac.h"#include "lc_memset_secure.h"Go to the source code of this file.
Macros | |
| #define | LC_KC_CTX_ON_STACK(name, hash) |
| Allocate stack memory for the KMAC cryptor context. | |
Functions | |
| int | lc_kc_alloc (const struct lc_hash *hash, struct lc_aead_ctx **ctx) |
| Allocate KMAC cryptor context on heap. | |
| #define LC_KC_CTX_ON_STACK | ( | name, | |
| hash ) |
Allocate stack memory for the KMAC cryptor context.
NOTE: This is defined for lc_cshake256 as of now.
| [in] | name | Name of the stack variable |
| [in] | hash | Hash implementation of type struct hash used for the HMAC authentication |
Definition at line 110 of file lc_kmac_crypt.h.
| int lc_kc_alloc | ( | const struct lc_hash * | hash, |
| struct lc_aead_ctx ** | ctx ) |
Allocate KMAC cryptor context on heap.
NOTE: This is defined for lc_cshake256 as of now.
| [in] | hash | Hash implementation of type struct hash used for the HMAC authentication |
| [out] | ctx | Allocated KMAC cryptor context |