From 06dc47241af60e6249f6264d6bebaf3f16653193 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Thu, 4 Jan 2024 13:26:52 +0800 Subject: [PATCH] Resolve X25519 handshake problem --- CHANGES | 2 +- crypto/evp/ctrl_params_translate.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 34b023245..146f33619 100644 --- a/CHANGES +++ b/CHANGES @@ -4,7 +4,7 @@ Changes between 8.4.0 and 8.4.1 [xx XXX xxxx] - *) + *) 修复TLS1.3中X25519握手失败问题 Changes between 8.3.0 and 8.4.0 [15 Dec 2023] diff --git a/crypto/evp/ctrl_params_translate.c b/crypto/evp/ctrl_params_translate.c index c767c3164..fcb48ca38 100644 --- a/crypto/evp/ctrl_params_translate.c +++ b/crypto/evp/ctrl_params_translate.c @@ -2307,8 +2307,12 @@ static const struct translation_st evp_pkey_ctx_translations[] = { */ { SET, EVP_PKEY_X25519, EVP_PKEY_X25519, EVP_PKEY_OP_KEYGEN, -1, NULL, NULL, OSSL_PKEY_PARAM_GROUP_NAME, OSSL_PARAM_UTF8_STRING, fix_group_ecx }, + { SET, EVP_PKEY_X25519, EVP_PKEY_X25519, EVP_PKEY_OP_PARAMGEN, -1, NULL, NULL, + OSSL_PKEY_PARAM_GROUP_NAME, OSSL_PARAM_UTF8_STRING, fix_group_ecx }, { SET, EVP_PKEY_X448, EVP_PKEY_X448, EVP_PKEY_OP_KEYGEN, -1, NULL, NULL, OSSL_PKEY_PARAM_GROUP_NAME, OSSL_PARAM_UTF8_STRING, fix_group_ecx }, + { SET, EVP_PKEY_X448, EVP_PKEY_X448, EVP_PKEY_OP_PARAMGEN, -1, NULL, NULL, + OSSL_PKEY_PARAM_GROUP_NAME, OSSL_PARAM_UTF8_STRING, fix_group_ecx }, }; static const struct translation_st evp_pkey_translations[] = {