Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/random/yarrow.c
Show All 35 Lines | |||||
#include <sys/random.h> | #include <sys/random.h> | ||||
#include <sys/sdt.h> | #include <sys/sdt.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
#include <crypto/rijndael/rijndael-api-fst.h> | #include <crypto/rijndael/rijndael-api-fst.h> | ||||
#include <crypto/sha2/sha2.h> | #include <crypto/sha2/sha256.h> | ||||
#include <dev/random/hash.h> | #include <dev/random/hash.h> | ||||
#include <dev/random/randomdev.h> | #include <dev/random/randomdev.h> | ||||
#include <dev/random/random_harvestq.h> | #include <dev/random/random_harvestq.h> | ||||
#include <dev/random/uint128.h> | #include <dev/random/uint128.h> | ||||
#include <dev/random/yarrow.h> | #include <dev/random/yarrow.h> | ||||
#else /* !_KERNEL */ | #else /* !_KERNEL */ | ||||
#include <inttypes.h> | #include <inttypes.h> | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <stdint.h> | #include <stdint.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <threads.h> | #include <threads.h> | ||||
#include "unit_test.h" | #include "unit_test.h" | ||||
#include <crypto/rijndael/rijndael-api-fst.h> | #include <crypto/rijndael/rijndael-api-fst.h> | ||||
#include <crypto/sha2/sha2.h> | #include <crypto/sha2/sha256.h> | ||||
#include <dev/random/hash.h> | #include <dev/random/hash.h> | ||||
#include <dev/random/randomdev.h> | #include <dev/random/randomdev.h> | ||||
#include <dev/random/uint128.h> | #include <dev/random/uint128.h> | ||||
#include <dev/random/yarrow.h> | #include <dev/random/yarrow.h> | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#define RANDOM_YARROW_TIMEBIN 16 /* max value for Pt/t */ | #define RANDOM_YARROW_TIMEBIN 16 /* max value for Pt/t */ | ||||
▲ Show 20 Lines • Show All 324 Lines • Show Last 20 Lines |