projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
992c50c
)
Fix EVP_RAND-SEED-SRC documentation example
author
Jamie Cui
<jamie.cui@outlook.com>
Wed, 29 Nov 2023 01:28:58 +0000
(
01:28
+0000)
committer
Tomas Mraz
<tomas@openssl.org>
Thu, 30 Nov 2023 11:34:14 +0000
(12:34 +0100)
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
)
doc/man7/EVP_RAND-SEED-SRC.pod
patch
|
blob
|
history
diff --git
a/doc/man7/EVP_RAND-SEED-SRC.pod
b/doc/man7/EVP_RAND-SEED-SRC.pod
index 516fa64f577e0ccf9ec117274f550afc569c8ef9..56f4acd2b89770092b615a335e42ccfeffac5ad3 100644
(file)
--- 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 a
nd 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 */