From: Yuan, Shuai Date: Tue, 4 Apr 2023 05:42:38 +0000 (-0400) Subject: Fixes #19580 ECX keygen X-Git-Tag: openssl-3.2.0-alpha1~1014 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40f4884990a1717755df366e2aa06d01a1affd63;p=thirdparty%2Fopenssl.git Fixes #19580 ECX keygen Signed-off-by: Yuan, Shuai Reviewed-by: Tomas Mraz Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/20680) --- diff --git a/crypto/ec/ecx_meth.c b/crypto/ec/ecx_meth.c index 45531b86a1e..81e0beb485a 100644 --- a/crypto/ec/ecx_meth.c +++ b/crypto/ec/ecx_meth.c @@ -711,7 +711,7 @@ const EVP_PKEY_ASN1_METHOD ossl_ed448_asn1_meth = { static int pkey_ecx_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) { ECX_KEY *ecx = ossl_ecx_key_op(NULL, NULL, 0, ctx->pmeth->pkey_id, - KEY_OP_PUBLIC, NULL, NULL); + KEY_OP_KEYGEN, NULL, NULL); if (ecx != NULL) { EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, ecx);