Zero Entropy Source for testing. More...
Zero Entropy Source for testing.
This module produces zeros only and should be used for testing purposes only.
Files | |
file | zero_entropy.h |
Functions | |
int | entropy_source_zero_init (void) |
Initializes test structures, if tests are enabled. | |
int | entropy_source_zero_get (uint8_t *buf, size_t len) |
Generates zeros. | |
#define | CONFIG_ENTROPY_SOURCE_ZERO_HEALTH_TEST 1 |
Enable health test by default. | |
#define | CONFIG_ENTROPY_SOURCE_ZERO_COND 0 |
Disable conditioning by default. | |
#define CONFIG_ENTROPY_SOURCE_ZERO_COND 0 |
Disable conditioning by default.
Conditioning is useless for zeros only. The von Neumann extractor would never finish and wait for the stop criterion given by CONFIG_ENTROPY_SOURCE_NEUMANN_ABORT.
Definition at line 64 of file zero_entropy.h.
#define CONFIG_ENTROPY_SOURCE_ZERO_HEALTH_TEST 1 |
Enable health test by default.
Testing is the only purpose of this module.
Definition at line 53 of file zero_entropy.h.
int entropy_source_zero_get | ( | uint8_t * | buf, |
size_t | len | ||
) |
Generates zeros.
[out] | buf | pointer to write zeros to |
[in] | len | number of bytes to generate |
int entropy_source_zero_init | ( | void | ) |
Initializes test structures, if tests are enabled.