iPXE
|
Entropy sampling. More...
Go to the source code of this file.
Macros | |
#define | SAMPLE_COUNT 65536 |
Total number of test samples. More... | |
#define | SAMPLE_BLOCKSIZE 256 |
Number of samples per block. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static void | entropy_sample (struct entropy_source *source) |
Generate entropy samples for external testing. More... | |
static void | entropy_sample_test_exec (void) |
Generate entropy samples for external testing. More... | |
Variables | |
struct self_test entropy_sample_test | __self_test |
Entropy sampling self-test. More... | |
Entropy sampling.
Definition in file entropy_sample.c.
#define SAMPLE_COUNT 65536 |
Total number of test samples.
Definition at line 37 of file entropy_sample.c.
#define SAMPLE_BLOCKSIZE 256 |
Number of samples per block.
Definition at line 40 of file entropy_sample.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Generate entropy samples for external testing.
source | Entropy source |
Definition at line 47 of file entropy_sample.c.
References entropy_disable(), entropy_enable(), get_noise(), entropy_source::name, ok, printf(), rc, SAMPLE_BLOCKSIZE, and SAMPLE_COUNT.
Referenced by entropy_sample_test_exec().
|
static |
Generate entropy samples for external testing.
Definition at line 77 of file entropy_sample.c.
References entropy_sample(), ENTROPY_SOURCES, and for_each_table_entry.
struct self_test entropy_sample_test __self_test |
Entropy sampling self-test.
Definition at line 87 of file entropy_sample.c.