Leancrypto 0.12.0
Post-Quantum Cryptographic Library
|
Go to the source code of this file.
Macros | |
#define | LC_AK_CTX_ON_STACK(name, hash) |
Allocate stack memory for the Ascon-Keccak cryptor context using a 128 bit tag. | |
#define | LC_AK_CTX_ON_STACK_TAGLEN(name, hash, tagsize) |
Allocate stack memory for the Ascon-Keccak cryptor context using a configured taglen. | |
Functions | |
int | lc_ak_alloc (const struct lc_hash *hash, struct lc_aead_ctx **ctx) |
Allocate Ascon Keccak cryptor context on heap. | |
int | lc_ak_alloc_taglen (const struct lc_hash *hash, uint8_t taglen, struct lc_aead_ctx **ctx) |
Allocate Ascon Keccak cryptor context on heap. | |
#define LC_AK_CTX_ON_STACK | ( | name, | |
hash ) |
Allocate stack memory for the Ascon-Keccak cryptor context using a 128 bit tag.
NOTE: This is defined for lc_sha3_512 and lc_sha3_256.
[in] | name | Name of the stack variable |
[in] | hash | Hash implementation of type struct hash used for the Ascon-Keccak algorithm |
Definition at line 75 of file lc_ascon_keccak.h.
#define LC_AK_CTX_ON_STACK_TAGLEN | ( | name, | |
hash, | |||
tagsize ) |
Allocate stack memory for the Ascon-Keccak cryptor context using a configured taglen.
NOTE: This is defined for lc_sha3_512 and lc_sha3_256.
[in] | name | Name of the stack variable |
[in] | hash | Hash implementation of type struct hash used for the Ascon-Keccak algorithm |
[in] | tagsize | Length of the tag in bytes (between 16 and key size) |
Definition at line 100 of file lc_ascon_keccak.h.
int lc_ak_alloc | ( | const struct lc_hash * | hash, |
struct lc_aead_ctx ** | ctx ) |
Allocate Ascon Keccak cryptor context on heap.
NOTE: This is defined for lc_sha3_512 and lc_sha3_256.
[in] | hash | Hash implementation of type struct hash used for the Ascon-Keccak algorithm |
[out] | ctx | Allocated Ascon-Keccak cryptor context |
int lc_ak_alloc_taglen | ( | const struct lc_hash * | hash, |
uint8_t | taglen, | ||
struct lc_aead_ctx ** | ctx ) |
Allocate Ascon Keccak cryptor context on heap.
NOTE: This is defined for lc_sha3_512 and lc_sha3_256.
[in] | hash | Hash implementation of type struct hash used for the Ascon-Keccak algorithm |
[in] | taglen | Length of the tag in bytes (between 16 and key size) |
[out] | ctx | Allocated Ascon-Keccak cryptor context |