iPXE
|
RBG mechanism. More...
Go to the source code of this file.
Data Structures | |
struct | random_bit_generator |
An RBG. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | rbg_generate (const void *additional, size_t additional_len, int prediction_resist, void *data, size_t len) |
Generate bits using RBG. More... | |
Variables | |
struct random_bit_generator | rbg |
The RBG. More... | |
RBG mechanism.
Definition in file rbg.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
int rbg_generate | ( | const void * | additional, |
size_t | additional_len, | ||
int | prediction_resist, | ||
void * | data, | ||
size_t | len | ||
) |
Generate bits using RBG.
additional | Additional input |
additional_len | Length of additional input |
prediction_resist | Prediction resistance is required |
data | Output buffer |
len | Length of output buffer |
rc | Return status code |
This is the RBG_Generate function defined in ANS X9.82 Part 4 (April 2011 Draft) Section 9.1.2.2.
Definition at line 116 of file rbg.c.
References additional, data, drbg_generate(), len, rbg, rbg_startup(), random_bit_generator::started, and random_bit_generator::state.
Referenced by get_random_nz(), tls_generate_random(), and wpa_handle_1_of_4().
struct random_bit_generator rbg |
The RBG.
Definition at line 63 of file rbg.c.
Referenced by rbg_generate(), rbg_shutdown(), rbg_startup(), and rbg_startup_fn().