-
Notifications
You must be signed in to change notification settings - Fork 711
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
pkcs15-crypt signing fails on release 0.25.0 w/ a YubiKey-bound RSA key #3072
Comments
OpenSC/src/libopensc/padding.c Lines 628 to 675 in d2cbd63
But both SC_ALGORITHM_RSA_PAD_PKCS1_TYPE_01 and SC_ALGORITHM_RSA_PAD_PKCS1_TYPE_02 are both set. Only one pad_algo bit should be set.
This may be related to e8883b1 @xhanulik any ideas? |
Yes, when extracting |
Problem Description
When trying to sign with a YubiKey 5c nano on release 0.25.0, I get the following error:
I believe this was introduced in this PR: #2975
The pad algorithm output from the logs is
0xC0
, which lines up withSC_ALGORITHM_RSA_PAD_PKCS1
from:OpenSC/src/libopensc/opensc.h
Lines 118 to 120 in d2cbd63
Operating System: macOS Sonoma 14.0 (23A344)
Machine: 2021 Macbook Pro M1 Max
Proposed Resolution
Steps to reproduce
Update to the latest opensc (0.25.0), try to sign with pkcs15-crypt using an RSA key on a YubiKey.
Logs
Logs from running the above command on v0.25.0
Logs from running the same command on v0.24.0
The text was updated successfully, but these errors were encountered: