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.  More... | |
| int | entropy_source_zero_get (uint8_t *buf, size_t len) | 
| Generates zeros.  More... | |
| #define | CONFIG_ENTROPY_SOURCE_ZERO_HEALTH_TEST 1 | 
| Enable health test by default.  More... | |
| #define | CONFIG_ENTROPY_SOURCE_ZERO_COND 0 | 
| Disable conditioning by default.  More... | |
| #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 63 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 52 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.