-
Notifications
You must be signed in to change notification settings - Fork 803
Add full ECC Support for D-Trust Card 4.1/4.4 #3248
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
* dtrust: implement ECDH key agreement
1bcb07d to
adb2382
Compare
eb2f754 to
7977123
Compare
Jakuje
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Looks good to me!
|
Also, the linter doesn't seem to like the extra empty line: diff --git a/src/libopensc/iso7816.c b/src/libopensc/iso7816.c
index 30cebb4..e17549c 100644
--- a/src/libopensc/iso7816.c
+++ b/src/libopensc/iso7816.c
@@ -30,7 +30,6 @@
#include "iso7816.h"
#include "sm/sm-iso.h"
-
void
iso7816_fixup_transceive_length(const struct sc_card *card,
struct sc_apdu *apdu) |
The code of `fixup_transceive_length()` was duplicated multiple times in the code. Make this function public and remove duplicated code to improve maintainability.
7977123 to
3f4f7cd
Compare
|
@frankmorgner @Jakuje Is this good to go to 0.26.0 or should we postpone? |
|
I think this is good to go for 0.26. It is changing only the dtrust driver. The changes in other files are only refactoring and should not introduce any changes in behavior. |
This PR adds support for ECDSA signatures and ECDH key agreement for D-Trust Signatures Cards 4.1/4.4 issued by the german Bundesdruckerei.
This PR supersedes #3240. But since @frankmorgner already reviewed that PR I wouldn't like to amend it afterwards. Feel free to continue reviewing #3240 and to postpone this one or just to review this PR instead. I am unsure which way do you prefer. Sorry the noise in case you preferred just amending an already reviewed PR.
Tested on:
field_sizeextension is not present #3236Checklist