openssl/include/internal
Dr. Matthias St. Pierre a93ba405b0 Add master DRBG for reseeding
A third shared DRBG is added, the so called master DRBG. Its sole purpose
is to reseed the two other shared DRBGs, the public and the private DRBG.
The randomness for the master DRBG is either pulled from the os entropy
sources, or added by the application using the RAND_add() call.

The master DRBG reseeds itself automatically after a given number of generate
requests, but can also be reseeded using RAND_seed() or RAND_add().
A reseeding of the master DRBG is automatically propagated to the public
and private DRBG. This construction fixes the problem, that up to now
the randomness provided by RAND_add() was added only to the public and
not to the private DRBG.

Signed-off-by: Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/4402)
2017-12-17 23:12:10 +01: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 Fix invalid function type casts. 2017-12-15 19:33:48 +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 Remove parentheses of return. 2017-10-18 16:05:06 +01:00
cryptlib.h Create a prototype for OPENSSL_rdtsc 2017-11-25 14:30:11 +01:00
dane.h Perform DANE-EE(3) name checks by default 2016-07-12 10:16:34 -04:00
dso.h Use "" not <> for internal/ includes 2017-08-22 09:54:20 -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
nelem.h Remove tests dependence on e_os.h 2017-08-18 09:50:25 +10:00
numbers.h Copyright consolidation 03/10 2016-05-17 14:24:17 -04:00
o_dir.h Fix some Typos and indents 2017-08-11 10:16:33 -04:00
o_str.h Remove internal functions OPENSSL_strcasecmp and OPENSSL_strncasecmp 2016-05-28 02:15:04 +02:00
rand.h Add master DRBG for reseeding 2017-12-17 23:12:10 +01:00
refcount.h Move the REF_PRINT support from e_os.h to internal/refcount.h. 2017-08-30 07:20:44 +10:00
sockets.h Fix guarding macro in include/internal/sockets.h 2017-08-25 23:59:30 +02:00
thread_once.h Clarify what RUN_ONCE returns 2017-01-13 13:10:21 +01:00