RAND_DRBG: add a callback data for entropy and nonce callbacks
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sun, 26 Jan 2020 21:18:23 +0000 (22:18 +0100)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Fri, 7 Feb 2020 10:38:02 +0000 (11:38 +0100)
commit30a9d5d1a72149c4eb2b8e5aa83f509344c80232
treec8ae072771a45fa23ad49b0cc0a3ffe740623392
parentb03de7a9207645c72e22627b10709f15eed211bf
RAND_DRBG: add a callback data for entropy and nonce callbacks

The callback data allows passing context specific data from the
application of the DRBG to to the entropy callbacks.
This a rather specialized feature which is useful for implementing
known answer tests (KATs) or deterministic signatures (RFC6979),
which require passing a specified entropy and nonce for instantiating
the DRBG.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10950)
crypto/rand/drbg_lib.c
crypto/rand/rand_local.h
doc/man3/RAND_DRBG_set_callbacks.pod
doc/man3/SSL_CTX_set_ct_validation_callback.pod
include/openssl/rand_drbg.h
util/libcrypto.num