41#define RDRAND_RETRY_COUNT 16
44#define colour &rdrand_entropy
91 DBGC (
colour,
"RDRAND failed to become ready\n" );
#define colour
Colour for debug messages.
void x86_features(struct x86_features *features)
Get x86 CPU features.
x86 CPU feature detection
#define CPUID_FEATURES_INTEL_ECX_RDRAND
RDRAND instruction is supported.
#define DRBG_SECURITY_STRENGTH
Security strength.
uint32_t features
Supported features.
#define ENTROPY_PREFERRED
Preferred entropy source.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define EBUSY
Device or resource busy.
#define ENOTSUP
Operation not supported.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
static void entropy_init(struct entropy_source *source, min_entropy_t min_entropy_per_sample)
Initialise entropy source.
#define MIN_ENTROPY(bits)
Construct a min-entropy fixed-point value.
uint8_t noise_sample_t
A noise sample.
#define __entropy_source(order)
Declare an entropy source.
__asm__(".section \".rodata\", \"a\", " PROGBITS "\n\t" "\nprivate_key_data:\n\t" ".size private_key_data, ( . - private_key_data )\n\t" ".equ private_key_len, ( . - private_key_data )\n\t" ".previous\n\t")
#define RDRAND_RETRY_COUNT
Number of times to retry RDRAND instruction.
static int rdrand_get_noise(noise_sample_t *noise)
Get noise sample.
static int rdrand_entropy_enable(void)
Enable entropy gathering.