Leancrypto 0.12.0
Post-Quantum Cryptographic Library
|
Go to the source code of this file.
Macros | |
#define | LC_AL_CTX_ON_STACK(name, hash) |
Allocate stack memory for the Ascon lightweight cryptor context. | |
Functions | |
int | lc_al_alloc (const struct lc_hash *hash, struct lc_aead_ctx **ctx) |
Allocate Ascon Lightweight cryptor context on heap. | |
#define LC_AL_CTX_ON_STACK | ( | name, | |
hash ) |
Allocate stack memory for the Ascon lightweight cryptor context.
NOTE: This is defined for lc_ascon_128* as of now.
[in] | name | Name of the stack variable |
[in] | hash | Hash implementation of type struct hash used for the Ascon lightweight algorithm |
Definition at line 59 of file lc_ascon_lightweight.h.
int lc_al_alloc | ( | const struct lc_hash * | hash, |
struct lc_aead_ctx ** | ctx ) |
Allocate Ascon Lightweight cryptor context on heap.
NOTE: This is defined for lc_ascon_128*.
[in] | hash | Hash implementation of type struct hash used for the Ascon-Keccak algorithm |
[out] | ctx | Allocated Ascon lightweight cryptor context |