summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJamie Cui <jamie.cui@outlook.com>2023-11-29 01:28:58 +0000
committerTomas Mraz <tomas@openssl.org>2023-11-30 12:34:24 +0100
commit0b53a0c0aff0c37262e7ef0fa6c8e5b659c4f733 (patch)
treea7808dca48df5c2e3f1801ef66a0d93345f47f12 /doc
parente257fccad9e695d0de466bf55f7d22c020302b9f (diff)
Fix EVP_RAND-SEED-SRC documentation example
Fixes #22810 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22857) (cherry picked from commit 58d926213f00ba7046d0868de8b37929aa067a1f)
Diffstat (limited to 'doc')
-rw-r--r--doc/man7/EVP_RAND-SEED-SRC.pod3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/man7/EVP_RAND-SEED-SRC.pod b/doc/man7/EVP_RAND-SEED-SRC.pod
index 516fa64f57..56f4acd2b8 100644
--- a/doc/man7/EVP_RAND-SEED-SRC.pod
+++ b/doc/man7/EVP_RAND-SEED-SRC.pod
@@ -49,9 +49,10 @@ A context for the seed source can be obtained by calling:
OSSL_PARAM params[2], *p = params;
unsigned int strength = 128;
- /* Create a seed source */
+ /* Create and instantiate a seed source */
rand = EVP_RAND_fetch(NULL, "SEED-SRC", NULL);
seed = EVP_RAND_CTX_new(rand, NULL);
+ EVP_RAND_instantiate(seed, strength, 0, NULL, 0, NULL);
EVP_RAND_free(rand);
/* Feed this into a DRBG */