Skip to content

Commit e12fe72

Browse files
fix allow mgf-hash mismatch
Allow hash-mgf mismatch in RSA OAEP
1 parent 4308e25 commit e12fe72

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/lib/test/AsymEncryptDecryptTests.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@ void AsymEncryptDecryptTests::rsaOAEPParams(CK_SESSION_HANDLE hSession, CK_OBJEC
137137
rv = CRYPTOKI_F_PTR( C_EncryptInit(hSession,&mechanism,hPublicKey) );
138138
CPPUNIT_ASSERT(rv==CKR_ARGUMENTS_BAD);
139139

140-
oaepParams.hashAlg = CKM_SHA_1;
141-
oaepParams.mgf = CKG_MGF1_SHA256;
142-
rv = CRYPTOKI_F_PTR( C_EncryptInit(hSession,&mechanism,hPublicKey) );
143-
CPPUNIT_ASSERT(rv==CKR_ARGUMENTS_BAD);
144-
145140
oaepParams.mgf = CKG_MGF1_SHA1;
146141
oaepParams.source = CKZ_DATA_SPECIFIED - 1;
147142
rv = CRYPTOKI_F_PTR( C_EncryptInit(hSession,&mechanism,hPublicKey) );

0 commit comments

Comments
 (0)