mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
6ebb49f3f9
rand_pool_bytes_needed() was constructed in such a way that the smallest acceptable entropy factor was 1 entropy bits per 8 bits of data. At the same time, we have a DRBG_MINMAX_FACTOR that allows weaker source, as small as 1 bit of entropy per 128 bits of data. The conclusion is that rand_pool_bytes_needed() needs to change to support weaker entropy sources. We therefore change the input of entropy per byte to be an entropy factor instead. This entropy factor expresses how many bits of data it takes (on average) to get 1 bit of entropy. Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/6150) |
||
---|---|---|
.. | ||
__DECC_INCLUDE_EPILOGUE.H | ||
__DECC_INCLUDE_PROLOGUE.H | ||
aria.h | ||
asn1_int.h | ||
async.h | ||
bn_conf.h.in | ||
bn_dh.h | ||
bn_int.h | ||
bn_srp.h | ||
chacha.h | ||
cryptlib_int.h | ||
ctype.h | ||
dso_conf.h.in | ||
engine.h | ||
err_int.h | ||
evp_int.h | ||
md32_common.h | ||
objects.h | ||
poly1305.h | ||
rand_int.h | ||
sha.h | ||
siphash.h | ||
sm3.h | ||
sm4.h | ||
store_int.h | ||
store.h | ||
x509_int.h |