summaryrefslogtreecommitdiffstats
path: root/crypto/ec
diff options
context:
space:
mode:
authorYuan, Shuai <shuai.yuan@intel.com>2023-04-04 01:42:38 -0400
committerPauli <pauli@openssl.org>2023-04-12 17:21:43 +1000
commit40f4884990a1717755df366e2aa06d01a1affd63 (patch)
treee3f03b744cb4818f94ea98f2b522b318d11ac1f5 /crypto/ec
parent7a4e109ebe5af83bad6447889e43ac2612375070 (diff)
Fixes #19580 ECX keygen
Signed-off-by: Yuan, Shuai <shuai.yuan@intel.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/20680)
Diffstat (limited to 'crypto/ec')
-rw-r--r--crypto/ec/ecx_meth.c2
1 files changed, 1 insertions, 1 deletions
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);