Skip to content

Commit f2b52ef

Browse files
committed
Add verify to priv key
1 parent 17a02cb commit f2b52ef

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/pkcs11mtt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,6 +2044,7 @@ static CK_RV get_rsa_priv_key(CK_SESSION_HANDLE session, unsigned char* privId,
20442044
{ CKA_CLASS, &privKeyClass, sizeof(privKeyClass) },
20452045
{ CKA_KEY_TYPE, &rsaKeyType, sizeof(rsaKeyType) },
20462046
{ CKA_DECRYPT, &ckTrue, sizeof(ckTrue) },
2047+
{ CKA_VERIFY, &ckTrue, sizeof(ckTrue) },
20472048
{ CKA_MODULUS, rsa_2048_modulus, sizeof(rsa_2048_modulus) },
20482049
{ CKA_PRIVATE_EXPONENT, rsa_2048_priv_exp, sizeof(rsa_2048_priv_exp) },
20492050
{ CKA_PRIME_1, rsa_2048_p, sizeof(rsa_2048_p) },

tests/pkcs11test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5540,6 +5540,7 @@ static CK_RV get_rsa_priv_key(CK_SESSION_HANDLE session, unsigned char* privId,
55405540
{ CKA_CLASS, &privKeyClass, sizeof(privKeyClass) },
55415541
{ CKA_KEY_TYPE, &rsaKeyType, sizeof(rsaKeyType) },
55425542
{ CKA_DECRYPT, &ckTrue, sizeof(ckTrue) },
5543+
{ CKA_VERIFY, &ckTrue, sizeof(ckTrue) },
55435544
{ CKA_MODULUS, rsa_2048_modulus, sizeof(rsa_2048_modulus) },
55445545
{ CKA_PRIVATE_EXPONENT, rsa_2048_priv_exp, sizeof(rsa_2048_priv_exp) },
55455546
{ CKA_PRIME_1, rsa_2048_p, sizeof(rsa_2048_p) },

0 commit comments

Comments
 (0)