iPXE
Defines | Functions
linux_entropy.h File Reference

/dev/random-based entropy source More...

Go to the source code of this file.

Defines

#define ENTROPY_PREFIX_linux   __linux_

Functions

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

Detailed Description

/dev/random-based entropy source

Definition in file linux_entropy.h.


Define Documentation

#define ENTROPY_PREFIX_linux   __linux_

Definition at line 15 of file linux_entropy.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
static __always_inline min_entropy_t ENTROPY_INLINE ( linux  ,
min_entropy_per_sample   
) [inline, static]

min-entropy per sample

Return values:
min_entropymin-entropy of each sample

Definition at line 24 of file linux_entropy.h.

References MIN_ENTROPY.

                                                          {

        /* linux_get_noise() reads a single byte from /dev/random,
         * which is supposed to block until a sufficient amount of
         * entropy is available.  We therefore assume that each sample
         * contains exactly 8 bits of entropy.
         */
        return MIN_ENTROPY ( 8.0 );
}