Lines Matching defs:entropylen
244 unsigned short entropylen = drbg_sec_strength(drbg->core->flags);
259 memcpy(drbg->prev, entropy, entropylen);
264 ret = memcmp(drbg->prev, entropy, entropylen);
267 memcpy(drbg->prev, entropy, entropylen);
1075 unsigned int entropylen)
1080 get_random_bytes(entropy, entropylen);
1093 unsigned int entropylen = drbg_sec_strength(drbg->core->flags);
1097 BUG_ON(!entropylen);
1098 BUG_ON(entropylen > sizeof(entropy));
1100 drbg_string_fill(&data, entropy, entropylen);
1103 ret = drbg_get_random_bytes(drbg, entropy, entropylen);
1110 memzero_explicit(entropy, entropylen);
1130 unsigned int entropylen = drbg_sec_strength(drbg->core->flags);
1155 BUG_ON(!entropylen);
1157 entropylen = ((entropylen + 1) / 2) * 3;
1158 BUG_ON((entropylen * 2) > sizeof(entropy));
1164 ret = drbg_get_random_bytes(drbg, entropy, entropylen);
1169 drbg_string_fill(&data1, entropy, entropylen);
1171 entropylen);
1175 entropy + entropylen,
1176 entropylen);
1198 drbg_string_fill(&data1, entropy, entropylen * 2);
1200 entropylen * 2);
1223 memzero_explicit(entropy, entropylen * 2);