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

Ecdh kdf test vectors #10

Merged
merged 2 commits into from
Mar 16, 2023
Merged

Ecdh kdf test vectors #10

merged 2 commits into from
Mar 16, 2023

Conversation

Sajjon
Copy link
Owner

@Sajjon Sajjon commented Mar 16, 2023

I've developed this repo which produces test vectors for ECDH with both variants:

  • libsecp256k1 variant (SHA256 hash of compressed publickey)
  • ASN1 x9.63 (x component only)

And for both it produces expected KDF using both:

  • HKDF
  • X963 KDF

With various input for various keys.

This PR implements tests for these vectors.

@Sajjon Sajjon merged commit d32c3e2 into main Mar 16, 2023
@Sajjon Sajjon deleted the ecdh_kdf_test_vectors branch March 16, 2023 20:00
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

1 participant