BeRTOS
|
Entropy pool generic interface. More...
Go to the source code of this file.
Data Structures | |
struct | EntropyPool |
Sturct data of entropy pool. More... | |
Defines | |
#define | CONFIG_ENTROPY_NUM_SOURCES 8 |
Maximum number of different sources of entropy available in BeRTOS. | |
Functions | |
void | entropy_add (EntropyPool *e, int source_idx, const uint8_t *data, size_t len, int entropy) |
Add some data samples containing entropy into the pool. | |
bool | entropy_seeding_ready (EntropyPool *ctx) |
Check if the generator is ready to produce a new seed. | |
void | entropy_make_seed (EntropyPool *ctx, uint8_t *out, size_t len) |
Generate a new seed of the specified length. |
Entropy pool generic interface.
Definition in file entropy.h.
#define CONFIG_ENTROPY_NUM_SOURCES 8 |
void entropy_add | ( | EntropyPool * | e, |
int | source_idx, | ||
const uint8_t * | data, | ||
size_t | len, | ||
int | entropy | ||
) | [inline] |
void entropy_make_seed | ( | EntropyPool * | ctx, |
uint8_t * | out, | ||
size_t | len | ||
) | [inline] |