Lines Matching full:entropy

218  * Note, this function disregards the nonce trailing the entropy data during
224 * @entropy buffer of seed data to be checked
232 const unsigned char *entropy) in drbg_fips_continuous_test() argument
249 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
254 ret = memcmp(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
257 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
1061 unsigned char *entropy, in drbg_get_random_bytes() argument
1067 get_random_bytes(entropy, entropylen); in drbg_get_random_bytes()
1068 ret = drbg_fips_continuous_test(drbg, entropy); in drbg_get_random_bytes()
1081 unsigned char entropy[32]; in drbg_seed_from_random() local
1085 BUG_ON(entropylen > sizeof(entropy)); in drbg_seed_from_random()
1087 drbg_string_fill(&data, entropy, entropylen); in drbg_seed_from_random()
1090 ret = drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_seed_from_random()
1097 memzero_explicit(entropy, entropylen); in drbg_seed_from_random()
1110 * Obtain fresh entropy for the nopr DRBGs after 300s have in drbg_nopr_reseed_interval_elapsed()
1136 unsigned char entropy[((32 + 16) * 2)]; in drbg_seed() local
1152 pr_devel("DRBG: using test entropy\n"); in drbg_seed()
1155 * Gather entropy equal to the security strength of the DRBG. in drbg_seed()
1157 * to the entropy. A nonce must be at least 1/2 of the security in drbg_seed()
1158 * strength of the DRBG in size. Thus, entropy + nonce is 3/2 in drbg_seed()
1165 BUG_ON((entropylen * 2) > sizeof(entropy)); in drbg_seed()
1171 ret = drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_seed()
1176 drbg_string_fill(&data1, entropy, entropylen); in drbg_seed()
1177 pr_devel("DRBG: (re)seeding with %u bytes of entropy\n", in drbg_seed()
1185 entropy + entropylen, in drbg_seed()
1208 drbg_string_fill(&data1, entropy, entropylen * 2); in drbg_seed()
1209 pr_devel("DRBG: (re)seeding with %u bytes of entropy\n", in drbg_seed()
1216 * concatenation of entropy with personalization str / addtl input) in drbg_seed()
1233 memzero_explicit(entropy, entropylen * 2); in drbg_seed()
1361 * the entropy is pulled by the DRBG internally unconditionally
1363 * the state in addition to the pulled entropy.
1548 * the entropy is pulled by the DRBG internally unconditionally
1550 * the state in addition to the pulled entropy.