|
Leancrypto 1.7.2
Post-Quantum Cryptographic Library
|
Include dependency graph for lc_chacha20_drng.h:Go to the source code of this file.
Macros | |
| #define | LC_CC20_DRNG_CTX_ON_STACK(name) |
| Allocate stack memory for the ChaCha20 context. More... | |
Functions | |
| int | lc_cc20_drng_alloc (struct lc_rng_ctx **state) |
| Allocation of a ChaCha20 DRNG context. More... | |
| #define LC_CC20_DRNG_CTX_ON_STACK | ( | name | ) |
Allocate stack memory for the ChaCha20 context.
| [in] | name | Name of the stack variable |
Definition at line 62 of file lc_chacha20_drng.h.
| int lc_cc20_drng_alloc | ( | struct lc_rng_ctx ** | state | ) |
Allocation of a ChaCha20 DRNG context.
| [out] | state | RNG 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.