Skip to content
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 fails to ASN.1-encode ECDSA signature #1139

Closed
mouse07410 opened this issue Aug 29, 2017 · 0 comments
Closed

pkcs11-tool fails to ASN.1-encode ECDSA signature #1139

mouse07410 opened this issue Aug 29, 2017 · 0 comments

Comments

@mouse07410
Copy link
Contributor

mouse07410 commented Aug 29, 2017

Problem Description

When mechanism is ECDSA or ECDSA-SHA1 everything is OK. If you use ECDSA-SHA256, ECDSA-SHA384, or ECDSA-SHA512 - it does not do the ASN.1 encoding of the signature requested by --signature-format sequence parameter.

Cause is obvious: mechanism check looks only for plain or SHA-1.

Proposed Resolution

Add the SHA-2 hashes. See #1140

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

No branches or pull requests

1 participant