Go to the source code of this file.
Functions | |
void | fortuna_get_bytes (unsigned len, uint8 *dst) |
void | fortuna_add_entropy (const uint8 *data, unsigned len) |
void fortuna_add_entropy | ( | const uint8 * | data, | |
unsigned | len | |||
) |
Definition at line 439 of file fortuna.c.
References add_entropy(), init_done, and init_state().
Referenced by px_add_entropy(), and system_reseed().
{ if (!init_done) { init_state(&main_state); init_done = 1; } if (!data || !len) return; add_entropy(&main_state, data, len); }
void fortuna_get_bytes | ( | unsigned | len, | |
uint8 * | dst | |||
) |
Definition at line 452 of file fortuna.c.
References extract_data(), init_done, and init_state().
Referenced by px_get_random_bytes().
{ if (!init_done) { init_state(&main_state); init_done = 1; } if (!dst || !len) return; extract_data(&main_state, len, dst); }