|
Leancrypto 1.6.0
Post-Quantum Cryptographic Library
|
Go to the source code of this file.
Macros | |
| #define | LC_CSHAKE256_DRNG_CTX_ON_STACK(name) |
| Allocate stack memory for the CSHAKE256 DRNG context. | |
Functions | |
| int | lc_cshake256_drng_alloc (struct lc_rng_ctx **state) |
| Allocation of a CSHAKE DRNG context. | |
| #define LC_CSHAKE256_DRNG_CTX_ON_STACK | ( | name | ) |
Allocate stack memory for the CSHAKE256 DRNG context.
| [in] | name | Name of the stack variable |
Definition at line 58 of file lc_cshake256_drng.h.
| int lc_cshake256_drng_alloc | ( | struct lc_rng_ctx ** | state | ) |
Allocation of a CSHAKE DRNG context.
| [out] | state | CSHAKE 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.