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

Supports compresssed octets format in agreement::agree_ephemeral() #1255 #246

Closed
wants to merge 0 commits into from

Conversation

hansonchar
Copy link
Contributor

@hansonchar hansonchar commented Oct 18, 2023

Issues:

Addresses #ISSUE-1255

Description of changes:

  • Current behavior: agreement::agree_ephemeral() supports the peer public key in uncompressed octets format, but rejects if the peer public key is in compressed octets format.
  • Behavior after code change: supports the peer public key in either uncompressed or compressed octets format.
  • Added method compute_public_key_compressed to EphemeralPrivateKey so that users can retrieve the EC public key in compressed format when applicable.

Call-outs:

I've changed the test cases that used to disallow peer public key in compressed format to now allow them.

Testing:

cargo test

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@hansonchar hansonchar requested a review from a team as a code owner October 18, 2023 05:24
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.

2 participants