openssl/crypto/rand
Dr. Matthias St. Pierre 75ff4f7404 DRBG: delay initialization of DRBG method until instantiation
Previously, the initialization was done immediately in RAND_DRBG_set(),
which is also called in RAND_DRBG_uninstantiate().

This made it difficult for the FIPS DRBG self test to verify that the
internal state had been zeroized, because it had the side effect that
the drbg->data structure was reinitialized immediately.

To solve the problem, RAND_DRBG_set() has been split in two parts

    static int rand_drbg_set(RAND_DRBG *drbg, int type, unsigned int flags);
    static int rand_drbg_init_method(RAND_DRBG *drbg);

and only the first part is called from RAND_DRBG_uninstantiate().

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11111)
2020-02-25 11:30:00 +01:00
..
build.info
drbg_ctr.c
drbg_hash.c
drbg_hmac.c Deprecate the low level HMAC functions 2020-01-29 19:49:23 +10:00
drbg_lib.c DRBG: delay initialization of DRBG method until instantiation 2020-02-25 11:30:00 +01:00
rand_crng_test.c
rand_egd.c
rand_err.c DRBG: delay initialization of DRBG method until instantiation 2020-02-25 11:30:00 +01:00
rand_lib.c Fix misspelling errors and typos reported by codespell 2020-02-06 17:01:00 +01:00
rand_local.h RAND_DRBG: add a callback data for entropy and nonce callbacks 2020-02-07 11:38:02 +01:00
rand_unix.c Move random-related defines to "crypto/rand.h" 2020-01-07 16:28:15 +01:00
rand_vms.c
rand_vxworks.c
rand_win.c
randfile.c