-
Notifications
You must be signed in to change notification settings - Fork 803
PKCS15 Emulator for Starcos 3.x Cards with eSign app #2544
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
Conversation
|
This pull request introduces 1 alert when merging b66dc70 into 46708b7 - view on LGTM.com new alerts:
|
|
Please, rebase the PR on top of current master. |
I used Sourcetree for rebase, hope it is OK. |
|
It does not look like that. This PR now contains 100 commits (from master) and conflicts with current master. |
Oops, I messed up, will try to fix it. |
I have reviewed the changes and the possible options to fix this PR. The simplest solution seems to be dropping this PR and reapplying the changes in a new PR. Do you agree with this solution? |
|
I dont know how creating a new PR solves any issue. If you can fix the stuff in new PR in new branch, why it is not possible to do that in the same branch? |
021f36b to
7a6710e
Compare
Yes, you are right, creating a new PR would not solve any issue, but I got stuck with my Windows git tools and I also wanted a better description for the PR. In the meantime, I realized that the PR title and text is editable and after moving back to Linux, I could rebase the branch, as you suggested. |
|
The commit series is still very long and most of the commits are fixups and fixups of fixups (adding and removing lines back and forth). If they do not make sense on their own, please, squash them to self-contained commits |
7a6710e to
83a7e73
Compare
I squashed the unnecessary commits, fixed the magic number and indenting issues. |
|
Code looks ok, but the CIFuzz found a new crash in your code. Can you check the report and fix it? |
|
I managed to fix the CIFuzz crash. |
|
No further review comments so I will merge this change. Thank you for your contribution! |
Checklist
Scope
New card types (SC_CARD_TYPE_STARCOS_V3_4_ESIGN and SC_CARD_TYPE_STARCOS_V3_5_ESIGN) and PKCS15 emulator for StarCOS 3.x cards with eSign app, released by Bundesagentur für Arbeit, a German Federal Agency.
The card contains 2 2028-bit RSA keys and the associated certificates, intended for non qualified PKI operations. The card may include a QES app for qualified signatures, not included in this PR.
The new card types are "emulation only" as the card profile may contain a broken PKCS#15 structure. The PKCS15 emulator supports only the user PIN, and by default, it emits the card holder certificates only. The compile time option ENABLE_ESIGN_ISSUER_CONTAINERS enables issuer certificates in the emulator.
Notes
The StarCOS v3.5 card has no support for ISO7816 Pin-Info, it may prevent PIN operations in PKCS#11, e.g. in Firefox. The PR contains some modifications of the StartCOS card driver: among others, it includes PSS-Padding support, fixes Select by AID, fixes extended APDU handling and disables path-caching.