iPXE
Macros | Functions
efi_entropy.h File Reference

EFI entropy source. More...

#include <stdint.h>

Go to the source code of this file.

Macros

#define ENTROPY_PREFIX_efi   __efi_
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
static __always_inline min_entropy_t ENTROPY_INLINE (efi, min_entropy_per_sample)(void)
 min-entropy per sample More...
 

Detailed Description

EFI entropy source.

Definition in file efi_entropy.h.

Macro Definition Documentation

◆ ENTROPY_PREFIX_efi

#define ENTROPY_PREFIX_efi   __efi_

Definition at line 17 of file efi_entropy.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ ENTROPY_INLINE()

static __always_inline min_entropy_t ENTROPY_INLINE ( efi  ,
min_entropy_per_sample   
)
inlinestatic

min-entropy per sample

Return values
min_entropymin-entropy of each sample

Definition at line 26 of file efi_entropy.h.

26  {
27 
28  /* We use essentially the same mechanism as for the BIOS
29  * RTC-based entropy source, and so assume the same
30  * min-entropy per sample.
31  */
32  return MIN_ENTROPY ( 1.3 );
33 }
#define MIN_ENTROPY(bits)
Construct a min-entropy fixed-point value.
Definition: entropy.h:71

References MIN_ENTROPY.