PeculiarVentures / pvpkcs11

pvpkcs11 consists of a input validation library and a set of PKCS#11 implementations that wrap operating system and browser cryptographic implementations.
MIT License
32 stars 7 forks source link

Please help ! Sign with mechanic ckm_rsa_pkcs #42

Open nguyenbinhdai opened 4 years ago

nguyenbinhdai commented 4 years ago

I using graphene and pvpkcs11 on windows for USB token : when signing using mechanic rsa_pkcs but error invalid mechanic ! Please help me ! Thanks you very much !

rmhrisk commented 4 years ago

It sounds like the PKCS library is saying it doesn’t support rsa_pkcs.

Have you tried enumerating supported mechanisms to see what it supports?

microshine commented 4 years ago

pvpkcs11 doesn't implement CKM_RSA_PKCS

https://github.com/PeculiarVentures/pvpkcs11/blob/master/src/mscapi/crypto_sign.cpp#L46-L58

Use C_GetMechanismList function to get a list of supported mechanisms

nguyenbinhdai commented 4 years ago

Thanks MicroShine! How can extend to support rsa_pkcs mechanic ?

rmhrisk commented 4 years ago

Start by looking at the SoftHSM implementation.