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

hpke: relax seed size check in DeriveKeyPair #487

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Mar 13, 2024

  1. hpke: relax seed size check in DeriveKeyPair

    RFC 9180 section 7.1.3 says:
    
    > For a given KEM, the ikm parameter given to DeriveKeyPair()
    > SHOULD have length at least Nsk, and SHOULD have at least Nsk
    > bytes of entropy.
    
    Thus, it is not a requirement for HPKE to pass a seed with a fixed
    size. Protocols such as MLS rely on this.
    
    Closes: cloudflare#486
    emersion committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    7b15fc1 View commit details
    Browse the repository at this point in the history