Skip to content

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