summaryrefslogtreecommitdiff
path: root/doc/man7/EVP_RAND-HMAC-DRBG.pod
diff options
context:
space:
mode:
authorPauli <ppzgs1@gmail.com>2021-02-26 10:56:46 +1000
committerPauli <ppzgs1@gmail.com>2021-02-28 17:25:49 +1000
commitf8a5822cff0b05df8fa937b5aca72ef5b4c1b47a (patch)
treed22dab0afed98afb10bccc6bac8b431d378d08d0 /doc/man7/EVP_RAND-HMAC-DRBG.pod
parent7198bd1a8f44be994106d3dba4bbb3362147b144 (diff)
downloadopenssl-new-f8a5822cff0b05df8fa937b5aca72ef5b4c1b47a.tar.gz
doc: update documenation with params argument on DRBG instantiate calls
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/14310)
Diffstat (limited to 'doc/man7/EVP_RAND-HMAC-DRBG.pod')
-rw-r--r--doc/man7/EVP_RAND-HMAC-DRBG.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/man7/EVP_RAND-HMAC-DRBG.pod b/doc/man7/EVP_RAND-HMAC-DRBG.pod
index f04ae336fc..f345255efc 100644
--- a/doc/man7/EVP_RAND-HMAC-DRBG.pod
+++ b/doc/man7/EVP_RAND-HMAC-DRBG.pod
@@ -76,7 +76,7 @@ A context for HMAC DRBG can be obtained by calling:
*p++ = OSSL_PARAM_construct_utf8_string(OSSL_DRBG_PARAM_MAC, SN_hmac, 0);
*p++ = OSSL_PARAM_construct_utf8_string(OSSL_DRBG_PARAM_DIGEST, SN_sha256, 0);
*p = OSSL_PARAM_construct_end();
- EVP_RAND_set_ctx_params(rctx, params);
+ EVP_RAND_instantiate(rctx, strength, 0, NULL, 0, params);
EVP_RAND_generate(rctx, bytes, sizeof(bytes), strength, 0, NULL, 0);