Skip to content

Commit a4dbf00

Browse files
fix allow mgf-hash mismatch
1 parent 4b19a5e commit a4dbf00

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/lib/SoftHSM.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2457,7 +2457,6 @@ CK_RV SoftHSM::AsymEncryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMec
24572457

24582458
// Get the asymmetric algorithm matching the mechanism
24592459
AsymMech::Type mechanism;
2460-
unsigned long expectedMgf;
24612460
bool isRSA = false;
24622461
switch(pMechanism->mechanism) {
24632462
case CKM_RSA_PKCS:
@@ -3212,7 +3211,6 @@ CK_RV SoftHSM::AsymDecryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMec
32123211

32133212
// Get the asymmetric algorithm matching the mechanism
32143213
AsymMech::Type mechanism = AsymMech::Unknown;
3215-
unsigned long expectedMgf;
32163214
bool isRSA = false;
32173215
switch(pMechanism->mechanism) {
32183216
case CKM_RSA_PKCS:
@@ -6480,7 +6478,6 @@ CK_RV SoftHSM::WrapKeyAsym
64806478
const size_t bb = 8;
64816479
AsymAlgo::Type algo = AsymAlgo::Unknown;
64826480
AsymMech::Type mech = AsymMech::Unknown;
6483-
unsigned long expectedMgf;
64846481

64856482
CK_ULONG modulus_length;
64866483
switch(pMechanism->mechanism) {
@@ -7099,7 +7096,6 @@ CK_RV SoftHSM::UnwrapKeyAsym
70997096
// Get the symmetric algorithm matching the mechanism
71007097
AsymAlgo::Type algo = AsymAlgo::Unknown;
71017098
AsymMech::Type mode = AsymMech::Unknown;
7102-
unsigned long expectedMgf;
71037099
switch(pMechanism->mechanism) {
71047100
case CKM_RSA_PKCS:
71057101
algo = AsymAlgo::RSA;

0 commit comments

Comments
 (0)