Lines Matching refs:entropy
233 const unsigned char *entropy) in drbg_fips_continuous_test() argument
250 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
255 if (!memcmp(drbg->prev, entropy, entropylen)) in drbg_fips_continuous_test()
257 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
847 unsigned char *entropy, in drbg_get_random_bytes() argument
852 get_random_bytes(entropy, entropylen); in drbg_get_random_bytes()
853 while (!drbg_fips_continuous_test(drbg, entropy)); in drbg_get_random_bytes()
862 unsigned char entropy[32]; in drbg_seed_from_random() local
866 BUG_ON(entropylen > sizeof(entropy)); in drbg_seed_from_random()
868 drbg_string_fill(&data, entropy, entropylen); in drbg_seed_from_random()
871 drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_seed_from_random()
875 memzero_explicit(entropy, entropylen); in drbg_seed_from_random()
915 unsigned char entropy[((32 + 16) * 2)]; in drbg_seed() local
944 BUG_ON((entropylen * 2) > sizeof(entropy)); in drbg_seed()
950 drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_seed()
953 drbg_string_fill(&data1, entropy, entropylen); in drbg_seed()
962 entropy + entropylen, in drbg_seed()
985 drbg_string_fill(&data1, entropy, entropylen * 2); in drbg_seed()
1010 memzero_explicit(entropy, entropylen * 2); in drbg_seed()