openssl/include/internal
Rich Salz 75e2c87765 Switch from ossl_rand to DRBG rand
If RAND_add wraps around, XOR with existing. Add test to drbgtest that
does the wrap-around.

Re-order seeding and stop after first success.

Add RAND_poll_ex()

Use the DF and therefore lower RANDOMNESS_NEEDED.  Also, for child DRBG's,
mix in the address as the personalization bits.

Centralize the entropy callbacks, from drbg_lib to rand_lib.
(Conceptually, entropy is part of the enclosing application.)
Thanks to Dr. Matthias St Pierre for the suggestion.

Various code cleanups:
    -Make state an enum; inline RANDerr calls.
    -Add RAND_POLL_RETRIES (thanks Pauli for the idea)
    -Remove most RAND_seed calls from rest of library
    -Rename DRBG_CTX to RAND_DRBG, etc.
    -Move some code from drbg_lib to drbg_rand; drbg_lib is now only the
     implementation of NIST DRBG.
    -Remove blocklength

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/4019)
2017-08-03 09:23:28 -04: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
bio.h More parameter naming of BIO_read*/BIO_write* related functions 2016-10-28 09:48:54 +01:00
comp.h Copyright consolidation 03/10 2016-05-17 14:24:17 -04:00
conf.h RT4562: Fix misleading doc on OPENSSL_config 2016-06-14 12:30:37 -04:00
constant_time_locl.h Add constant-time 64 2017-06-21 09:19:42 -04:00
cryptlib.h Move ossl_assert 2017-08-03 10:48:00 +01:00
dane.h Perform DANE-EE(3) name checks by default 2016-07-12 10:16:34 -04:00
dso.h make error tables const and separate header file 2017-06-07 15:12:03 -04:00
dsoerr.h make error tables const and separate header file 2017-06-07 15:12:03 -04:00
err.h Copyright consolidation 03/10 2016-05-17 14:24:17 -04:00
numbers.h Copyright consolidation 03/10 2016-05-17 14:24:17 -04:00
o_dir.h Fix typo (note by oneton@users.github) 2017-06-20 08:15:00 -04:00
o_str.h Remove internal functions OPENSSL_strcasecmp and OPENSSL_strncasecmp 2016-05-28 02:15:04 +02:00
rand.h Switch from ossl_rand to DRBG rand 2017-08-03 09:23:28 -04:00
refcount.h Revert "Add internal functions to fetch a refcount" 2017-05-28 15:02:42 +02:00
thread_once.h Clarify what RUN_ONCE returns 2017-01-13 13:10:21 +01:00