summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPauli <ppzgs1@gmail.com>2021-02-16 13:32:07 +1000
committerPauli <ppzgs1@gmail.com>2021-02-23 23:24:41 +1000
commit9c6ee56318d2fb1c5885fccb4f2c4dde83e8a2ea (patch)
tree26b786d26972c20d579a385a93c479b97d4a2bf2 /include
parentf626c3ffae90cacc1044dbcf01c3379fceea61bc (diff)
rand: add DRBG/seed setting functions
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13652)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/rand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/openssl/rand.h b/include/openssl/rand.h
index 1b928a1ef4..08593705c3 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);