|
Leancrypto 1.6.0
Post-Quantum Cryptographic Library
|
#include "lc_aead.h"#include "lc_memory_support.h"#include "lc_cshake.h"#include "lc_memset_secure.h"Go to the source code of this file.
Macros | |
| #define | LC_CC_CTX_ON_STACK(name, hash) |
| Allocate stack memory for the cSHAKE cryptor context. | |
Functions | |
| int | lc_cc_alloc (const struct lc_hash *hash, struct lc_aead_ctx **ctx) |
| Allocate cSHAKE cryptor context on heap. | |
| #define LC_CC_CTX_ON_STACK | ( | name, | |
| hash ) |
Allocate stack memory for the cSHAKE 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 cSHAKE authentication |
Definition at line 110 of file lc_cshake_crypt.h.
| int lc_cc_alloc | ( | const struct lc_hash * | hash, |
| struct lc_aead_ctx ** | ctx ) |
Allocate cSHAKE 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 cSHAKE cryptor context |