PKCS#11 CKM_RSA_PKCS Sign
Hello guys,
I am developing a pkcs#11 library especially to sign a document using the CSC protocol. I loaded this library in Adobe as a PKCS#11 module.
I need Adobe to sign only THE hash, because the CSC protocol requires this, but, when signing, adobe calls C_SignInit with the sign mechanism set to CKM_RSA_PKCS, which is a PADDED hash. It does this despite that the library does not support this signing mechanism. (which btw, this info is send with C_GetMechanismList, which lists all the mechanisms available in the library).
The problem is that Adobe does not call C_GetMechanismList, nor C_GetMechanismInfo to verify the mechanisms supported by the library. Even if CKR_MECHANISM_INVALID is returned by C_SignInit when CKM_RSA_PKCS is specified, Adobe again try to call C_SignInit and then the process fails.
Is there a way to tell adobe to change the mechanism to another, let's say CKM_RSA_X_509? Or maybe to make it verify the mechanisms available?
I am using Adobe Acrobat Reader DC v19.012.20035
Thank you,
Robert
