Lines Matching full:entropy

219  * Note, this function disregards the nonce trailing the entropy data during
225 * @entropy buffer of seed data to be checked
233 const unsigned char *entropy) in drbg_fips_continuous_test() argument
250 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
255 ret = memcmp(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
258 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test()
1062 unsigned char *entropy, in drbg_get_random_bytes() argument
1068 get_random_bytes(entropy, entropylen); in drbg_get_random_bytes()
1069 ret = drbg_fips_continuous_test(drbg, entropy); in drbg_get_random_bytes()
1082 unsigned char entropy[32]; in drbg_seed_from_random() local
1086 BUG_ON(entropylen > sizeof(entropy)); in drbg_seed_from_random()
1088 drbg_string_fill(&data, entropy, entropylen); in drbg_seed_from_random()
1091 ret = drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_seed_from_random()
1098 memzero_explicit(entropy, entropylen); in drbg_seed_from_random()
1111 * Obtain fresh entropy for the nopr DRBGs after 300s have in drbg_nopr_reseed_interval_elapsed()
1137 unsigned char entropy[((32 + 16) * 2)]; in drbg_seed() local
1153 pr_devel("DRBG: using test entropy\n"); in drbg_seed()
1156 * Gather entropy equal to the security strength of the DRBG. in drbg_seed()
1158 * to the entropy. A nonce must be at least 1/2 of the security in drbg_seed()
1159 * strength of the DRBG in size. Thus, entropy + nonce is 3/2 in drbg_seed()
1166 BUG_ON((entropylen * 2) > sizeof(entropy)); in drbg_seed()
1172 ret = drbg_get_random_bytes(drbg, entropy, entropylen); in drbg_seed()
1177 drbg_string_fill(&data1, entropy, entropylen); in drbg_seed()
1178 pr_devel("DRBG: (re)seeding with %u bytes of entropy\n", in drbg_seed()
1186 entropy + entropylen, in drbg_seed()
1209 drbg_string_fill(&data1, entropy, entropylen * 2); in drbg_seed()
1210 pr_devel("DRBG: (re)seeding with %u bytes of entropy\n", in drbg_seed()
1217 * concatenation of entropy with personalization str / addtl input) in drbg_seed()
1234 memzero_explicit(entropy, entropylen * 2); in drbg_seed()
1362 * the entropy is pulled by the DRBG internally unconditionally
1364 * the state in addition to the pulled entropy.
1549 * the entropy is pulled by the DRBG internally unconditionally
1551 * the state in addition to the pulled entropy.