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 VMS: Copy DECC inclusion epi- and prologues to internals 2017-04-20 13:10:06 +02:00
__DECC_INCLUDE_PROLOGUE.H VMS: Copy DECC inclusion epi- and prologues to internals 2017-04-20 13:10:06 +02:00
aria.h Many spelling fixes/typo's corrected. 2017-11-11 19:03:10 -05:00
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 Copyright consolidation: perl files 2016-04-20 09:45:40 -04:00
bn_dh.h DH named parameter support 2017-10-12 02:40:30 +01:00
bn_int.h Remove dead code in bn 2017-02-28 14:46:24 +00:00
bn_srp.h Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
chacha.h Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
cryptlib_int.h Ensure the thread keys are always allocated in the same order 2018-04-20 15:45:06 +02:00
ctype.h This has been added to avoid the situation where some host ctype.h functions 2017-08-22 09:45:25 +10:00
dso_conf.h.in Update copyright year 2018-04-03 13:57:12 +01:00
engine.h Add new /dev/crypto engine 2017-06-28 12:54:33 +02:00
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 Remove email addresses from source code. 2017-10-13 10:06:59 -04:00
objects.h Copyright consolidation 05/10 2016-05-17 15:38:09 -04:00
poly1305.h Add support for Poly1305 in EVP_PKEY 2017-01-24 15:40:37 +01:00
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 SHA512/224 and SHA512/256 2018-01-24 07:09:46 +10:00
siphash.h Add support for parameterized SipHash 2017-02-01 14:14:36 -05:00
sm3.h SM3: restructure to EVP internal and update doc to right location 2017-11-06 07:21:15 +08:00
sm4.h SM4: Add SM4 block cipher to EVP 2017-10-31 15:19:14 +10:00
store.h Add the STORE module 2017-06-29 11:55:31 +02:00
store_int.h Add internal functions to fetch PEM data from an opened BIO 2017-06-29 19:25:39 +02:00
x509_int.h Add support for custom signature parameters 2017-04-25 22:12:34 +01:00