Skip to content

Conversation

@xhanulik
Copy link
Member

Fixes #2454

PR removes support for DSA, mostly generic code, pkcs15-init, pkcs15-tool and the support in GPK and epass2003 drivers.

Checklist
  • Documentation is added or updated
  • PKCS#11 module is tested
  • Windows minidriver is tested
  • macOS tokend is tested

Remove gpk_encode_dsa_key() and support for DSA algorithm
It is never called with `type` argument of value
SC_PKCS15_TYPE_PUBKEY_DSA
@Jakuje
Copy link
Member

Jakuje commented Feb 15, 2022

@OpenSC/maintainers any more concerns with this change? Is there anyone who has some card with DSA that is working?

@Jakuje
Copy link
Member

Jakuje commented Feb 28, 2022

Any strong opinions if we should get this in now or after the next release?

So far I did not hear any reasoning why not to remove DSA support, but remaining question is when. I think this PR is in a good shape to be merged, but I do not insist on doing it right away somebody feels an urge to push this through some announcements.

But I hope nobody in 2022 is using 1024 bits DSA keys. I still think the current implementation never worked in PKCS#11 as the DSA algorithm was never registred in _sc_card_add_algorithm in any card driver and there was no support in the pkcs11-tool either.

#define SC_PKCS15_TYPE_PUBKEY_EC 0x204
#define SC_PKCS15_TYPE_PUBKEY_EDDSA 0x205
#define SC_PKCS15_TYPE_PUBKEY_XEDDSA 0x206
#define SC_PKCS15_TYPE_PUBKEY_GOSTR3410 0x202
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for the late comment. Should we keep the old identifiers here as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As @Jakuje mentioned above, it should probably stay as it was originally, it's fixed already.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change reverted, we need to adjust also the pkcs15-tool change, which is using these constants for key type labels.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing out, fixed.

Copy link
Member

@frankmorgner frankmorgner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're good to include this in the next release, too.

@Jakuje Jakuje merged commit 8e794aa into OpenSC:master Mar 1, 2022
@xhanulik xhanulik deleted the remove-dsa branch March 4, 2022 09:08
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.

Removing DSA support

3 participants