Closed Quietghost closed 3 years ago
I assume your key size is 2048?
CKM_RSA_PKCS
has an input size limit of k-11 (where k is the modulus size of your key in bytes -- 2048/8).
You most likely want to use a hash-and-sign mechanism (like CKM_SHA512_RSA_PKCS_PSS), or hash your data before attempting to sign it.
Hi,
i am currently trying to use the c_sign method to sign a binary certificate with a private key stored on a Luna HSM with the following code:
But I get the following error and I cannot solve it and cannot find any clue in the official documentation:
Can you help me or point me in the correct direction?
Thanks.