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

Conversation

emersion
Copy link

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: #486

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kem: Scheme.DeriveKeyPair length check too strict
2 participants