MPHELL
4.0.0
|
Declaration of entropy functions. More...
Go to the source code of this file.
Typedefs | |
typedef enum entropy_source | entropy_type |
Define the entropy source. | |
Enumerations | |
enum | entropy_source { INTEL, DEVURANDOM, DEVRANDOM, ENTROPY_UNSET } |
Define the entropy source. More... | |
Functions | |
void | get_entropy_input (mphell_status ret, uint8_t *data, const entropy_type entropy_src, const uint16_t length) |
Get length bit of entropy from the entropy source selected. More... | |
Declaration of entropy functions.
Definition in file mphell-entropy.h.
enum entropy_source |
Define the entropy source.
Definition at line 38 of file mphell-entropy.h.
void get_entropy_input | ( | mphell_status | ret, |
uint8_t * | data, | ||
const entropy_type | entropy_src, | ||
const uint16_t | length | ||
) |
Get length bit of entropy from the entropy source selected.
ret | Set to MPHELL_CATASTROPHIC_ERROR_RANDOM if the entropy source is not available, MPHELL_ERROR_RANDOM if no random seed was available, MPHELL_SUCCESS if everything worked ! |
data | To store the entropy |
entropy_src | To select the entropy source |
length | Length (in bytes) of data |
Definition at line 306 of file mphell-entropy.c.