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