summaryrefslogtreecommitdiffstats
path: root/doc/man7
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-09-08 09:28:57 +1000
committerPauli <pauli@openssl.org>2021-09-09 16:41:42 +1000
commitc076f7b6d53454b5a3a1c837a5ea71b7c6fbebe9 (patch)
treed03b186999ca5ff83f9dce3fe6bc7aae97d77471 /doc/man7
parent03943ae71dfd1ac37cb9675197ea59cc2718f099 (diff)
Fix the example SSH KDF code.
A salt was being set instead of a session ID. Fixes #16525 Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16550) (cherry picked from commit 81280137a1f33685d7d7fc531ea8fbac38e9a4b7)
Diffstat (limited to 'doc/man7')
-rw-r--r--doc/man7/EVP_KDF-SSHKDF.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/man7/EVP_KDF-SSHKDF.pod b/doc/man7/EVP_KDF-SSHKDF.pod
index 74d1b71aca..08369abff1 100644
--- a/doc/man7/EVP_KDF-SSHKDF.pod
+++ b/doc/man7/EVP_KDF-SSHKDF.pod
@@ -121,7 +121,7 @@ This example derives an 8 byte IV using SHA-256 with a 1K "key" and appropriate
key, (size_t)1024);
*p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SSHKDF_XCGHASH,
xcghash, (size_t)32);
- *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SALT,
+ *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SSHKDF_SESSION_ID,
session_id, (size_t)32);
*p++ = OSSL_PARAM_construct_utf8_string(OSSL_KDF_PARAM_SSHKDF_TYPE,
&type, sizeof(type));