diff options
author | Pauli <paul.dale@oracle.com> | 2019-09-15 01:44:14 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-09-15 03:54:55 +0200 |
commit | a218770d4de819afc9453284dc13b609eeea4639 (patch) | |
tree | 76eaae6026844327f606a4aa65d0a53a84647789 /doc/man7/EVP_KDF-SS.pod | |
parent | fix CRMF symmetric key handling (diff) | |
download | openssl-a218770d4de819afc9453284dc13b609eeea4639.tar.xz openssl-a218770d4de819afc9453284dc13b609eeea4639.zip |
Fix examples in the section 7 KDF man pages.
All of the examples called EVP_KDF_set_params() when they should have been
calling EVP_KDF_CTX_set_params().
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9898)
Diffstat (limited to 'doc/man7/EVP_KDF-SS.pod')
-rw-r--r-- | doc/man7/EVP_KDF-SS.pod | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/man7/EVP_KDF-SS.pod b/doc/man7/EVP_KDF-SS.pod index be69606701..be45d9e3c7 100644 --- a/doc/man7/EVP_KDF-SS.pod +++ b/doc/man7/EVP_KDF-SS.pod @@ -92,8 +92,8 @@ and fixedinfo value "label": *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_INFO, "label", (size_t)5); *p = OSSL_PARAM_construct_end(); - if (EVP_KDF_set_params(kctx, params) <= 0) { - error("EVP_KDF_set_params"); + if (EVP_KDF_CTX_set_params(kctx, params) <= 0) { + error("EVP_KDF_CTX_set_params"); } if (EVP_KDF_derive(kctx, out, sizeof(out)) <= 0) { error("EVP_KDF_derive"); @@ -124,8 +124,8 @@ fixedinfo value "label" and salt "salt": *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SALT, "salt", (size_t)4); *p = OSSL_PARAM_construct_end(); - if (EVP_KDF_set_params(kctx, params) <= 0) { - error("EVP_KDF_set_params"); + if (EVP_KDF_CTX_set_params(kctx, params) <= 0) { + error("EVP_KDF_CTX_set_params"); } if (EVP_KDF_derive(kctx, out, sizeof(out)) <= 0) { error("EVP_KDF_derive"); @@ -157,8 +157,8 @@ fixedinfo value "label", salt of "salt" and KMAC outlen of 20: "salt", (size_t)4); *p++ = OSSL_PARAM_construct_size_t(OSSL_KDF_PARAM_MAC_SIZE, (size_t)20); *p = OSSL_PARAM_construct_end(); - if (EVP_KDF_set_params(kctx, params) <= 0) { - error("EVP_KDF_set_params"); + if (EVP_KDF_CTX_set_params(kctx, params) <= 0) { + error("EVP_KDF_CTX_set_params"); } if (EVP_KDF_derive(kctx, out, sizeof(out)) <= 0) { error("EVP_KDF_derive"); |