-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to verify PyKCS11 signature using python cryptography library #126
Comments
If you use SHA256 in your verification side maybe you should use |
I started with Mechanism(CKM_SHA256_RSA_PKCS, None). Here's what I did, I first hashed the data using sha256 and then signed it using Mechanism(CKM_SHA256_RSA_PKCS, None). It didn't work out. Here's how I am fetching certificate and public key in PKCS11 for verification.
|
Do not hash before you sign. |
Your system information
Please describe your issue in as much detail as possible:
I am creating a data signing module which will sign data using inserted DSC token. I am able to sign the data and verify signature using PyKCS11 library. But when I am trying to verify the signature using python cryptography module, I am getting verification failure.
Sharing the code
Verification code
Please let me know where I am getting wrong?
I am also getting verification failure using openssl.
The text was updated successfully, but these errors were encountered: