From c076f7b6d53454b5a3a1c837a5ea71b7c6fbebe9 Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 8 Sep 2021 09:28:57 +1000 Subject: [PATCH] Fix the example SSH KDF code. A salt was being set instead of a session ID. Fixes #16525 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/16550) (cherry picked from commit 81280137a1f33685d7d7fc531ea8fbac38e9a4b7) --- doc/man7/EVP_KDF-SSHKDF.pod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/man7/EVP_KDF-SSHKDF.pod b/doc/man7/EVP_KDF-SSHKDF.pod index 74d1b71aca011..08369abff1590 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));