Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/random.h
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | enum random_entropy_source { | ||||
RANDOM_PURE_VMGENID, | RANDOM_PURE_VMGENID, | ||||
RANDOM_PURE_QUALCOMM, | RANDOM_PURE_QUALCOMM, | ||||
ENTROPYSOURCE | ENTROPYSOURCE | ||||
}; | }; | ||||
_Static_assert(ENTROPYSOURCE <= 32, | _Static_assert(ENTROPYSOURCE <= 32, | ||||
"hardcoded assumption that values fit in a typical word-sized bitset"); | "hardcoded assumption that values fit in a typical word-sized bitset"); | ||||
#define RANDOM_CACHED_BOOT_ENTROPY_MODULE "boot_entropy_cache" | #define RANDOM_CACHED_BOOT_ENTROPY_MODULE "boot_entropy_cache" | ||||
#define RANDOM_PLATFORM_BOOT_ENTROPY_MODULE "boot_entropy_platform" | |||||
extern u_int hc_source_mask; | extern u_int hc_source_mask; | ||||
void random_harvest_queue_(const void *, u_int, enum random_entropy_source); | void random_harvest_queue_(const void *, u_int, enum random_entropy_source); | ||||
void random_harvest_fast_(const void *, u_int); | void random_harvest_fast_(const void *, u_int); | ||||
void random_harvest_direct_(const void *, u_int, enum random_entropy_source); | void random_harvest_direct_(const void *, u_int, enum random_entropy_source); | ||||
static __inline void | static __inline void | ||||
random_harvest_queue(const void *entropy, u_int size, enum random_entropy_source origin) | random_harvest_queue(const void *entropy, u_int size, enum random_entropy_source origin) | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |