From: Pauli Date: Tue, 16 Feb 2021 03:32:07 +0000 (+1000) Subject: rand: add DRBG/seed setting functions X-Git-Tag: openssl-3.0.0-alpha13~217 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c6ee56318d2fb1c5885fccb4f2c4dde83e8a2ea;p=thirdparty%2Fopenssl.git rand: add DRBG/seed setting functions Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/13652) --- diff --git a/include/openssl/rand.h b/include/openssl/rand.h index 1b928a1ef49..08593705c39 100644 --- a/include/openssl/rand.h +++ b/include/openssl/rand.h @@ -74,6 +74,11 @@ EVP_RAND_CTX *RAND_get0_primary(OSSL_LIB_CTX *ctx); EVP_RAND_CTX *RAND_get0_public(OSSL_LIB_CTX *ctx); EVP_RAND_CTX *RAND_get0_private(OSSL_LIB_CTX *ctx); +int RAND_set_DRBG_type(OSSL_LIB_CTX *ctx, const char *drbg, const char *propq, + const char *cipher, const char *digest); +int RAND_set_seed_source_type(OSSL_LIB_CTX *ctx, const char *seed, + const char *propq); + void RAND_seed(const void *buf, int num); void RAND_keep_random_devices_open(int keep);