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

Fix parsing of EC keys #615

Closed
wants to merge 4 commits into from
Closed

Fix parsing of EC keys #615

wants to merge 4 commits into from

Conversation

rodrigc
Copy link
Contributor

@rodrigc rodrigc commented Dec 2, 2016

This fixes printing of EC keys, where the 'curve' attribute
is of type bytes, not of type int.
We cannot just do Key._fromString_BLOB() which does getMP(blob, 2) and
expects that the x,y will be the EC point.
From  https://tools.ietf.org/html/rfc5656#section-3.1,
"point compression MAY be used".

This eliminates an exception "ValueError: Invalid EC Key Y point."
when parsing EC keys.  This fix was submitted by glyph.
@glyph
Copy link
Member

glyph commented Dec 3, 2016

Oops, looks like a pretty platform-independent test failure :)

@rodrigc
Copy link
Contributor Author

rodrigc commented Dec 5, 2016

Needs more work

@rodrigc rodrigc closed this Dec 5, 2016
@rodrigc rodrigc deleted the 8931-rodrigc-conch-ec branch December 16, 2016 15:45
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.

None yet

2 participants