openssl/crypto/include/internal
Richard Levitte 6ebb49f3f9 Change rand_pool_bytes_needed to handle less entropy than 1 per 8 bits
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)
2018-05-02 10:18:29 +02:00
..
__DECC_INCLUDE_EPILOGUE.H
__DECC_INCLUDE_PROLOGUE.H
aria.h
asn1_int.h Update copyright year 2018-03-20 13:08:46 +00:00
async.h Update copyright year 2018-05-01 13:34:30 +01:00
bn_conf.h.in
bn_dh.h
bn_int.h
bn_srp.h
chacha.h
cryptlib_int.h Ensure the thread keys are always allocated in the same order 2018-04-20 15:45:06 +02:00
ctype.h
dso_conf.h.in Update copyright year 2018-04-03 13:57:12 +01:00
engine.h
err_int.h Update copyright year 2018-05-01 13:34:30 +01:00
evp_int.h Add support for the SRP base64 alphabet 2018-04-13 09:37:38 +01:00
md32_common.h
objects.h
poly1305.h
rand_int.h Change rand_pool_bytes_needed to handle less entropy than 1 per 8 bits 2018-05-02 10:18:29 +02:00
sha.h
siphash.h
sm3.h
sm4.h
store_int.h
store.h
x509_int.h