From: Oskar W. <no...@gi...> - 2019-11-28 10:17:22
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 79a51e0d18dea6e29f60146451368f4aa3ccda3c https://github.com/OpenSC/OpenSC/commit/79a51e0d18dea6e29f60146451368f4aa3ccda3c Author: Oskar Wiksten <osk...@ne...> Date: 2019-11-28 (Thu, 28 Nov 2019) Changed paths: M src/pkcs11/mechanism.c Log Message: ----------- pkcs11: Support for RSA PSS padding in verify * Explicitly copies the mechanism parameters during a PKCS#11 `C_VerifyInit` and `C_DecryptInit` operation. * Resolves issues where the calling application deallocates the `pParameter` pointer in the `CK_MECHANISM` struct between calls to `C_VerifyInit` and `C_Verify`, or between `C_DecryptInit` and `C_Decrypt`. * These mech parameters are used in RSASSA-PSS and RSAES-OAEP, for example. * This commit copies the same fix that was applied to `sc_pkcs11_sign_init` in commit e5707b545e5a2dc33b0ca52a8bf63f36f71b3d85 for supporting RSASSA-PSS. |