37#define SAMPLE_COUNT 65536
40#define SAMPLE_BLOCKSIZE 256
88 .name =
"entropy_sample",
struct arbelprm_rc_send_wqe rc
void entropy_disable(struct entropy_source *source)
Disable entropy gathering.
int entropy_enable(struct entropy_source *source)
Enable entropy gathering.
#define SAMPLE_COUNT
Total number of test samples.
static void entropy_sample(struct entropy_source *source)
Generate entropy samples for external testing.
static void entropy_sample_test_exec(void)
Generate entropy samples for external testing.
#define SAMPLE_BLOCKSIZE
Number of samples per block.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define ENTROPY_SOURCES
Entropy source table.
uint8_t noise_sample_t
A noise sample.
static int get_noise(struct entropy_source *source, noise_sample_t *noise)
Get noise sample.
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.
Self-test infrastructure.
#define __self_test
Declare a self-test.
int printf(const char *fmt,...)
Write a formatted string to the console.