Lines Matching defs:entropy
135 * If the DRBG has a parent, then the required amount of entropy input
138 * Otherwise, the entropy is polled from the system entropy sources
142 * its entropy will be used up first.
145 int entropy, size_t min_len,
154 bytes_needed = entropy >= 0 ? (entropy + 7) / 8 : 0;
194 static size_t get_entropy(PROV_DRBG *drbg, unsigned char **pout, int entropy,
203 return ossl_crngt_get_entropy(drbg, pout, entropy, min_len, max_len,
206 return ossl_prov_get_entropy(drbg->provctx, pout, entropy, min_len,
365 unsigned char *nonce = NULL, *entropy = NULL;
422 * the entropy and nonce in 1 call by increasing the entropy
451 entropylen = get_entropy(drbg, &entropy, min_entropy,
460 if (!drbg->instantiate(drbg, entropy, entropylen, nonce, noncelen,
462 cleanup_entropy(drbg, entropy, entropylen);
466 cleanup_entropy(drbg, entropy, entropylen);
505 unsigned char *entropy = NULL;
557 * NIST SP-800-90A mandates that entropy *shall not* be provided
579 entropylen = get_entropy(drbg, &entropy, drbg->strength,
588 if (!drbg->reseed(drbg, entropy, entropylen, adin, adinlen))
599 cleanup_entropy(drbg, entropy, entropylen);
695 * Restart |drbg|, using the specified entropy or additional input
701 * which is assumed to contain at least |entropy| bits of entropy.
703 * If |entropy| > 0, the buffer content is used as entropy input.
705 * If |entropy| == 0, the buffer content is used as additional input
769 const unsigned char *entropy, size_t entropylen,