From: Pauli Date: Tue, 7 Sep 2021 23:28:57 +0000 (+1000) Subject: Fix the example SSH KDF code. X-Git-Tag: openssl-3.2.0-alpha1~3583 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81280137a1f33685d7d7fc531ea8fbac38e9a4b7;p=thirdparty%2Fopenssl.git 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) --- diff --git a/doc/man7/EVP_KDF-SSHKDF.pod b/doc/man7/EVP_KDF-SSHKDF.pod index 74d1b71aca0..08369abff15 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));