Lines Matching refs:entropy
242 const unsigned char *entropy) in drbg_fips_continuous_test() argument
259 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
264 ret = memcmp(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
267 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
1053 unsigned char *entropy, in drbg_get_random_bytes() argument
1059 get_random_bytes(entropy, entropylen); in drbg_get_random_bytes()
1060 ret = drbg_fips_continuous_test(drbg, entropy); in drbg_get_random_bytes()
1075 unsigned char entropy[32]; in drbg_async_seed() local
1079 BUG_ON(entropylen > sizeof(entropy)); in drbg_async_seed()
1081 drbg_string_fill(&data, entropy, entropylen); in drbg_async_seed()
1086 ret = drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_async_seed()
1107 memzero_explicit(entropy, entropylen); in drbg_async_seed()
1125 unsigned char entropy[((32 + 16) * 2)]; in drbg_seed() local
1153 BUG_ON((entropylen * 2) > sizeof(entropy)); in drbg_seed()
1156 ret = drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_seed()
1161 drbg_string_fill(&data1, entropy, entropylen); in drbg_seed()
1167 entropy + entropylen, in drbg_seed()
1174 drbg_string_fill(&data1, entropy, entropylen * 2); in drbg_seed()
1199 memzero_explicit(entropy, entropylen * 2); in drbg_seed()