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

Hybrid Public Key Encryption (HPKE) #42

Merged
merged 6 commits into from
Feb 23, 2025
Merged

Hybrid Public Key Encryption (HPKE) #42

merged 6 commits into from
Feb 23, 2025

Conversation

kazu-yamamoto
Copy link
Owner

This PR provides necessary features for HPKE (RFC 9180):

  • Checking salt length in PSS
  • Defining toPRK which can convert ByteString to PRK
    • RFC 9180 has a bug: Context.Export() expands "exporter_secret" which is already expanded, not a PRK.
  • Monoid for SharedSecret
  • EllipticCurve class now has encodeScalar, decodeScalar and scalarToPoint
    • This is a breaking change but I guess that no third party library use this. So, minor version up is reasonable.

@kazu-yamamoto kazu-yamamoto merged commit 495a1fe into main Feb 23, 2025
0 of 12 checks passed
@kazu-yamamoto kazu-yamamoto deleted the hpke branch February 23, 2025 23:53
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.

1 participant