Lines Matching refs:entropy
243 const unsigned char *entropy) in drbg_fips_continuous_test() argument
260 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
265 ret = memcmp(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
268 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
1054 unsigned char *entropy, in drbg_get_random_bytes() argument
1060 get_random_bytes(entropy, entropylen); in drbg_get_random_bytes()
1061 ret = drbg_fips_continuous_test(drbg, entropy); in drbg_get_random_bytes()
1076 unsigned char entropy[32]; in drbg_async_seed() local
1080 BUG_ON(entropylen > sizeof(entropy)); in drbg_async_seed()
1082 drbg_string_fill(&data, entropy, entropylen); in drbg_async_seed()
1087 ret = drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_async_seed()
1104 memzero_explicit(entropy, entropylen); in drbg_async_seed()
1122 unsigned char entropy[((32 + 16) * 2)]; in drbg_seed() local
1150 BUG_ON((entropylen * 2) > sizeof(entropy)); in drbg_seed()
1153 ret = drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_seed()
1158 drbg_string_fill(&data1, entropy, entropylen); in drbg_seed()
1164 entropy + entropylen, in drbg_seed()
1187 drbg_string_fill(&data1, entropy, entropylen * 2); in drbg_seed()
1212 memzero_explicit(entropy, entropylen * 2); in drbg_seed()