|
Leancrypto 1.6.0
Post-Quantum Cryptographic Library
|
Go to the source code of this file.
Macros | |
| #define | LC_DRBG_HMAC_CTX_ON_STACK(name) |
| Allocate stack memory for the Hash DRBG context. | |
Functions | |
| int | lc_drbg_hmac_alloc (struct lc_rng_ctx **drbg) |
| Allocate HMAC DRBG context on heap. | |
| int | lc_drbg_hmac_healthcheck_sanity (struct lc_rng_ctx *drbg) |
| Tests as defined in 11.3.2 in addition to the cipher tests: testing of the error handling. | |
| #define LC_DRBG_HMAC_CTX_ON_STACK | ( | name | ) |
Allocate stack memory for the Hash DRBG context.
| [in] | name | Name of the stack variable |
Definition at line 77 of file lc_hmac_drbg.h.
| int lc_drbg_hmac_alloc | ( | struct lc_rng_ctx ** | drbg | ) |
Allocate HMAC DRBG context on heap.
| [out] | drbg | Allocated HMAC DRBG context |
| int lc_drbg_hmac_healthcheck_sanity | ( | struct lc_rng_ctx * | drbg | ) |
Tests as defined in 11.3.2 in addition to the cipher tests: testing of the error handling.
| [in] | drbg | DRBG state handle that is used solely for the testing. It shall not be a production handle unless you call drbg_seed on that handle afterwards. |
Note: testing of failing seed source as defined in 11.3.2 must be handled by the caller.
Note 2: There is no sensible way of testing the reseed counter enforcement, so skip it.