|
Leancrypto 1.6.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. | |
Variables | |
| const struct lc_aead * | lc_ascon_keccak_aead |
| #define LC_AK_CTX_ON_STACK | ( | name, | |
| hash ) |
Allocate stack memory for the Ascon-Keccak cryptor context using a 128 bit tag.
| [in] | name | Name of the stack variable |
| [in] | hash | Hash implementation of type struct hash used for the Ascon-Keccak algorithm |
Definition at line 82 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.
| [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 107 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.
This allocation ensures the tag length to be 128 bits.
| [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.
This allocation ensures the tag length requested by the caller.
| [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 |
|
extern |