From: dannyward630 Date: Thu, 18 Jun 2026 17:29:38 +0000 (+0200) Subject: Fix SSKDF key parameter documentation X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ce7b8afc92fc28aaabbc22d837c3f75aae92208;p=thirdparty%2Fopenssl.git Fix SSKDF key parameter documentation Document both the "key" and "secret" SSKDF parameter names, and keep the examples on the documented key form. Fixes #31544 CLA: trivial Reviewed-by: Richard Levitte Reviewed-by: Eugene Syromiatnikov Reviewed-by: Andrew Dinh MergeDate: Fri Jul 31 12:41:59 2026 (Merged from https://github.com/openssl/openssl/pull/31591) --- diff --git a/doc/man7/EVP_KDF-SS.pod b/doc/man7/EVP_KDF-SS.pod index acd2df00b21..d2aeb24f7d1 100644 --- a/doc/man7/EVP_KDF-SS.pod +++ b/doc/man7/EVP_KDF-SS.pod @@ -55,9 +55,13 @@ This parameter is ignored for KMAC. These parameters work as described in L. -=item "key" (B) +=item "key" (B) -This parameter set the shared secret that is used for key derivation. +This parameter sets the shared secret that is used for key derivation. + +=item "secret" (B) + +This parameter sets the shared secret that is used for key derivation. =item "info" (B) @@ -140,7 +144,7 @@ fixedinfo value "label" and salt "salt": SN_hmac, strlen(SN_hmac)); *p++ = OSSL_PARAM_construct_utf8_string(OSSL_KDF_PARAM_DIGEST, SN_sha256, strlen(SN_sha256)); - *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SECRET, + *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_KEY, "secret", (size_t)6); *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_INFO, "label", (size_t)5); @@ -167,7 +171,7 @@ fixedinfo value "label", salt of "salt" and KMAC outlen of 20: *p++ = OSSL_PARAM_construct_utf8_string(OSSL_KDF_PARAM_MAC, SN_kmac128, strlen(SN_kmac128)); - *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SECRET, + *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_KEY, "secret", (size_t)6); *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_INFO, "label", (size_t)5); @@ -201,7 +205,7 @@ This functionality was added in OpenSSL 3.0. =head1 COPYRIGHT -Copyright 2019-2024 The OpenSSL Project Authors. All Rights Reserved. Copyright +Copyright 2019-2026 The OpenSSL Project Authors. All Rights Reserved. Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. Licensed under the Apache License 2.0 (the "License"). You may not use