rand: add DRBG/seed setting functions
authorPauli <ppzgs1@gmail.com>
Tue, 16 Feb 2021 03:32:07 +0000 (13:32 +1000)
committerPauli <ppzgs1@gmail.com>
Tue, 23 Feb 2021 13:24:41 +0000 (23:24 +1000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13652)

include/openssl/rand.h

index 1b928a1ef49c7a386721856cfa34b99dfb13b6c3..08593705c393e8059b95cb9762fa69a63976cf8c 100644 (file)
@@ -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);