You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handling of empty data specified was broken.
As specified in "2.1.7 PKCS #1 RSA OAEP mechanism parameters" the
`CKZ_DATA_SPECIFIED` source:
> Array of CK_BYTE containing the value of the encoding parameter.
> If the parameter is empty, pSourceData must be NULL and ulSourceDataLen
> must be zero.
Adjusts by returning `std::ptr::null()` when the source data has not
been specified (`PkcsOaepSource::empty()` was used) and adds a tests
case for this.
One more test case that is ignored is added to handle the case when the
data specified is non-empty. Unfortunately this test fails for unknown
reasons (I haven't been able to find if SoftHSM supports it or not).
Fixes: #163Fixes: #164
Signed-off-by: Wiktor Kwapisiewicz <[email protected]>
Co-authored-by: Nachiketh S Ujjainimath <[email protected]>
0 commit comments