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

Remove reselection of DF after error in decipher, sign and derive #3067

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

xhanulik
Copy link
Contributor

Fixes #3044

After the error in sc_pkcs15_decipher/sc_pkcs15_derive/sc_pkcs15_derive, the DF is reselected and the operation is called for second time. This is problematic for cards which require authentication before operations with private key.
The code for reselecting the DF and second call for operations is removed, based on discussion in #3044.

Checklist
  • Documentation is added or updated
  • New files have a LGPL 2.1 license statement
  • PKCS#11 module is tested

@xhanulik
Copy link
Contributor Author

I tried to test this with several cards we have, but unfortunately, none hit the reselection case.

@frankmorgner frankmorgner merged commit 19846e1 into OpenSC:master Mar 18, 2024
42 of 44 checks passed
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.

Reselection of DF after failure in sc_pkcs15_decipher function
3 participants