Lines Matching full:entropy
230 * Note, this function disregards the nonce trailing the entropy data during
236 * @entropy buffer of seed data to be checked
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()
1126 * Obtain fresh entropy for the nopr DRBGs after 300s have in drbg_nopr_reseed_interval_elapsed()
1152 unsigned char entropy[((32 + 16) * 2)]; in drbg_seed() local
1168 pr_devel("DRBG: using test entropy\n"); in drbg_seed()
1171 * Gather entropy equal to the security strength of the DRBG. in drbg_seed()
1173 * to the entropy. A nonce must be at least 1/2 of the security in drbg_seed()
1174 * strength of the DRBG in size. Thus, entropy + nonce is 3/2 in drbg_seed()
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()
1193 pr_devel("DRBG: (re)seeding with %u bytes of entropy\n", in drbg_seed()
1201 entropy + entropylen, in drbg_seed()
1224 drbg_string_fill(&data1, entropy, entropylen * 2); in drbg_seed()
1225 pr_devel("DRBG: (re)seeding with %u bytes of entropy\n", in drbg_seed()
1232 * concatenation of entropy with personalization str / addtl input) in drbg_seed()
1249 memzero_explicit(entropy, entropylen * 2); in drbg_seed()
1377 * the entropy is pulled by the DRBG internally unconditionally
1379 * the state in addition to the pulled entropy.
1564 * the entropy is pulled by the DRBG internally unconditionally
1566 * the state in addition to the pulled entropy.