Skip to content

Conversation

@hamarituc
Copy link
Contributor

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:

Checklist
  • New files have a LGPL 2.1 license statement
  • PKCS#11 module is tested
  • Windows minidriver is tested (only for signature, but not for key derivation)
  • macOS tokend is tested (unable to test, help needed)

@hamarituc hamarituc force-pushed the dtrust-ecc-derive branch 2 times, most recently from eb2f754 to 7977123 Compare October 21, 2024 15:00
Copy link
Member

@Jakuje Jakuje left a 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!

@frankmorgner
Copy link
Member

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.
@xhanulik
Copy link
Member

@frankmorgner @Jakuje Is this good to go to 0.26.0 or should we postpone?

@Jakuje
Copy link
Member

Jakuje commented Nov 12, 2024

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.

@xhanulik xhanulik merged commit 9eec0dc into OpenSC:master Nov 12, 2024
@hamarituc hamarituc deleted the dtrust-ecc-derive branch November 12, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Unable to perform ECDSA signature when field_size extension is not present

4 participants