Skip to content
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

ta: pkcs11: fix CKM_RSA_X_509 signature size verification #7179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

etienne-lms
Copy link
Contributor

When using raw RSA decryption to generate a raw RSA signature, the decrypted message (that is our generated signature) may be shorter than required since RSA may have stripped out leading zero bytes. Fix the PKCS#11 TA implementation to insert them back to reach the target signature size.

Fixes: e02f17f ("ta: pkcs11: add CKM_RSA_X_509 authentication")

When using raw RSA decryption to generate a raw RSA signature,
the decrypted message (that is our generated signature) may be
shorter than required since RSA may have stripped out leading zero
bytes. Fix the PKCS#11 TA implementation to insert them back to reach
the target signature size.

Fixes: e02f17f ("ta: pkcs11: add CKM_RSA_X_509 authentication")
Signed-off-by: Etienne Carriere <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant