From 40f4884990a1717755df366e2aa06d01a1affd63 Mon Sep 17 00:00:00 2001 From: "Yuan, Shuai" Date: Tue, 4 Apr 2023 01:42:38 -0400 Subject: 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) --- crypto/ec/ecx_meth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/ec') diff --git a/crypto/ec/ecx_meth.c b/crypto/ec/ecx_meth.c index 45531b86a1..81e0beb485 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); -- cgit v1.2.3