Lines Matching refs:entropy
244 const unsigned char *entropy) in drbg_fips_continuous_test() argument
261 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
266 ret = memcmp(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
269 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
1077 unsigned char *entropy, in drbg_get_random_bytes() argument
1083 get_random_bytes(entropy, entropylen); in drbg_get_random_bytes()
1084 ret = drbg_fips_continuous_test(drbg, entropy); in drbg_get_random_bytes()
1097 unsigned char entropy[32]; in drbg_seed_from_random() local
1101 BUG_ON(entropylen > sizeof(entropy)); in drbg_seed_from_random()
1103 drbg_string_fill(&data, entropy, entropylen); in drbg_seed_from_random()
1106 ret = drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_seed_from_random()
1113 memzero_explicit(entropy, entropylen); in drbg_seed_from_random()
1152 unsigned char entropy[((32 + 16) * 2)]; in drbg_seed() local
1181 BUG_ON((entropylen * 2) > sizeof(entropy)); in drbg_seed()
1187 ret = drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_seed()
1192 drbg_string_fill(&data1, entropy, entropylen); in drbg_seed()
1201 entropy + entropylen, in drbg_seed()
1224 drbg_string_fill(&data1, entropy, entropylen * 2); in drbg_seed()
1249 memzero_explicit(entropy, entropylen * 2); in drbg_seed()