-
Notifications
You must be signed in to change notification settings - Fork 705
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
pkcs11-tool: Edwards curve show_key OID issue #2973
Comments
Also see #2952 and additional changes to simplify the code at. |
Disregard the https://github.com/dengert/OpenSC/tree/X25519-improvements branch |
I think the printing was fixed with #2960 couple of weeks back. |
@dlegaultbbry I don't mind. Please add comments to #2952 |
Problem Description
The show_key assumes the EC PARAMS are in OID form but pkcs11-tool uses the named curve EC params.
Proposed Resolution
Code should check whether EC_PARAMS matches the named curve and skip the OID decode part (or show the curve name instead).
Steps to reproduce
See logs below.
Logs
Extra
I can provide a patch once I figure out a proper resolution as I'd like to add support for 448 in there too (#2952)
I'd also like to be able to import Ed/X keys which is currently unsupported. I can log some of that work/fixes under 2952 if desired.
Maybe we should also be able to simply skip the "EC:" part when generating keys and be able to specify --key-type (can leave it as backwards compat)
I also noticed that the OID used are not the RFC defined ones, but the openpgp ones created before official OIDs existed. So perhaps we should also amend the table to add both rows for ed25519/448. There's also a typo in the ed25519 OID value there 1159 -> 11591
The text was updated successfully, but these errors were encountered: