Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix ECDH key import when strict_crypto_checks is enabled #801

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented Jun 22, 2023

With the strict_crypto_checks flag enabled, imported ECDH keys were required to have empty usages, but for private keys the usage set should be allowed to include deriveBits and deriveKey.
Since the compatibility date for the flag has not yet passed, this is unlikely to have had a significant effect.

Also updates a compat flag description to clarify that the public exponent is limited to a certain set of values.

@fhanau fhanau requested a review from jasnell June 22, 2023 00:59
@fhanau fhanau force-pushed the felix/ecdh-flag-fix branch from dab4e8d to 84c2b96 Compare June 22, 2023 01:09
With the `strict_crypto_checks` flag enabled, imported ECDH keys were
required to have empty usages, but for private keys the usage set should
be allowed to include deriveBits and deriveKey.
Since the compatibility date for the flag has not yet passed, this is
unlikely to have had a significant effect.
@fhanau fhanau force-pushed the felix/ecdh-flag-fix branch from 84c2b96 to ef79b40 Compare June 23, 2023 18:02
@fhanau fhanau merged commit 52e54b3 into main Jun 23, 2023
@fhanau fhanau deleted the felix/ecdh-flag-fix branch June 23, 2023 18:53
nhynes pushed a commit to escrin/workerd that referenced this pull request Jun 26, 2023
)

With the `strict_crypto_checks` flag enabled, imported ECDH keys were
required to have empty usages, but for private keys the usage set should
be allowed to include deriveBits and deriveKey.
Since the compatibility date for the flag has not yet passed, this is
unlikely to have had a significant effect.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants