Lines Matching defs:entropylen
246 unsigned short entropylen = drbg_sec_strength(drbg->core->flags);
261 memcpy(drbg->prev, entropy, entropylen);
266 ret = memcmp(drbg->prev, entropy, entropylen);
269 memcpy(drbg->prev, entropy, entropylen);
1078 unsigned int entropylen)
1083 get_random_bytes(entropy, entropylen);
1096 unsigned int entropylen = drbg_sec_strength(drbg->core->flags);
1100 BUG_ON(!entropylen);
1101 BUG_ON(entropylen > sizeof(entropy));
1103 drbg_string_fill(&data, entropy, entropylen);
1106 ret = drbg_get_random_bytes(drbg, entropy, entropylen);
1113 memzero_explicit(entropy, entropylen);
1153 unsigned int entropylen = drbg_sec_strength(drbg->core->flags);
1178 BUG_ON(!entropylen);
1180 entropylen = ((entropylen + 1) / 2) * 3;
1181 BUG_ON((entropylen * 2) > sizeof(entropy));
1187 ret = drbg_get_random_bytes(drbg, entropy, entropylen);
1192 drbg_string_fill(&data1, entropy, entropylen);
1194 entropylen);
1201 entropy + entropylen,
1202 entropylen);
1224 drbg_string_fill(&data1, entropy, entropylen * 2);
1226 entropylen * 2);
1249 memzero_explicit(entropy, entropylen * 2);