Entropy Pool
include/crypto/entropy_pool.h View source View on GitHubStructs
Section titled “Structs”entropy_pool
Section titled “entropy_pool”struct entropy_pool {
uint8_t buffer[ENTROPY_POOL_SIZE];
uint64_t write_pos;
uint64_t entropy_bits;
struct spinlock lock;
}; Macros
Section titled “Macros”ENTROPY_POOL_SIZE
Section titled “ENTROPY_POOL_SIZE”#define ENTROPY_POOL_SIZE 64 // 512 bits ENTROPY_MAX_BITS
Section titled “ENTROPY_MAX_BITS”#define ENTROPY_MAX_BITS (ENTROPY_POOL_SIZE * 8)