|
Leancrypto 1.7.2
Post-Quantum Cryptographic Library
|
Include dependency graph for lc_cshake256_drng.h: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. More... | |
Functions | |
| int | lc_cshake256_drng_alloc (struct lc_rng_ctx **state) |
| Allocation of a CSHAKE DRNG context. More... | |
| #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.