Lines Matching refs:entropy
145 int entropy, size_t min_len, in ossl_drbg_get_seed() argument
154 bytes_needed = entropy >= 0 ? (entropy + 7) / 8 : 0; in ossl_drbg_get_seed()
192 static size_t get_entropy(PROV_DRBG *drbg, unsigned char **pout, int entropy, in get_entropy() argument
204 return ossl_prov_get_entropy(drbg->provctx, pout, entropy, min_len, in get_entropy()
352 unsigned char *nonce = NULL, *entropy = NULL; in ossl_prov_drbg_instantiate() local
438 entropylen = get_entropy(drbg, &entropy, min_entropy, in ossl_prov_drbg_instantiate()
447 if (!drbg->instantiate(drbg, entropy, entropylen, nonce, noncelen, in ossl_prov_drbg_instantiate()
449 cleanup_entropy(drbg, entropy, entropylen); in ossl_prov_drbg_instantiate()
453 cleanup_entropy(drbg, entropy, entropylen); in ossl_prov_drbg_instantiate()
488 unsigned char *entropy = NULL; in ossl_prov_drbg_reseed_unlocked() local
562 entropylen = get_entropy(drbg, &entropy, drbg->strength, in ossl_prov_drbg_reseed_unlocked()
571 if (!drbg->reseed(drbg, entropy, entropylen, adin, adinlen)) in ossl_prov_drbg_reseed_unlocked()
582 cleanup_entropy(drbg, entropy, entropylen); in ossl_prov_drbg_reseed_unlocked()
787 const unsigned char *entropy, size_t entropylen, in ossl_rand_drbg_new() argument