Skip to content

Commit 9c3519e

Browse files
authored
Merge pull request #144 from haydenroche5/ecdsa_ctrl_cmds
Add support for a pair of missing ECDSA ctrl commands
2 parents 41c4f72 + 76266bb commit 9c3519e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/we_ecc.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,11 +1229,23 @@ static int we_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int num, void *ptr)
12291229
}
12301230
break;
12311231

1232-
/* Initialize digest. */
12331232
case EVP_PKEY_CTRL_DIGESTINIT:
1233+
/* Nothing to do. */
12341234
WOLFENGINE_MSG(WE_LOG_PK,
12351235
"received type: EVP_PKEY_CTRL_DIGEST");
12361236
break;
1237+
1238+
case EVP_PKEY_CTRL_PKCS7_SIGN:
1239+
/* Nothing to do. */
1240+
WOLFENGINE_MSG(WE_LOG_PK,
1241+
"received type: EVP_PKEY_CTRL_PKCS7_SIGN");
1242+
break;
1243+
1244+
case EVP_PKEY_CTRL_CMS_SIGN:
1245+
/* Nothing to do. */
1246+
WOLFENGINE_MSG(WE_LOG_PK,
1247+
"received type: EVP_PKEY_CTRL_CMS_SIGN");
1248+
break;
12371249
#endif
12381250

12391251
#ifdef WE_HAVE_ECKEYGEN

0 commit comments

Comments
 (0)