|
Leancrypto 1.6.0
Post-Quantum Cryptographic Library
|
Go to the source code of this file.
Macros | |
| #define | LC_KMAC256_DRNG_CTX_ON_STACK(name) |
| Allocate stack memory for the KMAC256 DRNG context. | |
Functions | |
| int | lc_kmac256_drng_alloc (struct lc_rng_ctx **state) |
| Allocation of a KMAC DRNG context. | |
| #define LC_KMAC256_DRNG_CTX_ON_STACK | ( | name | ) |
Allocate stack memory for the KMAC256 DRNG context.
| [in] | name | Name of the stack variable |
Definition at line 58 of file lc_kmac256_drng.h.
| int lc_kmac256_drng_alloc | ( | struct lc_rng_ctx ** | state | ) |
Allocation of a KMAC DRNG context.
| [out] | state | KMAC DRNG context allocated by the function |
The cipher handle including its memory is allocated with this function.
The memory is pinned so that the DRNG state cannot be swapped out to disk.