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

Disallow importing public ECDH keys with non-empty usage #432

Closed
wants to merge 1 commit into from

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented Mar 7, 2023

Addresses the suggestion in #415 – the usage set is actually required to be empty when importing public ECDH keys. Since we currently allow derive* usages and used to allow usages in CryptoKeyUsageSet::publicKeyMask() for public spki and jwk, only log a warning for now. The TODO comment describes how to check for an empty set if this proves to not produce warnings.

@fhanau fhanau requested a review from jasnell March 7, 2023 19:43
@fhanau
Copy link
Collaborator Author

fhanau commented Mar 7, 2023

Upstream PR has been added

@fhanau
Copy link
Collaborator Author

fhanau commented Mar 7, 2023

Sorry, meant to open a PR on a different branch, closing this for now

@fhanau fhanau closed this Mar 7, 2023
@fhanau fhanau deleted the felix/ecdh-import-fix branch April 9, 2023 14:36
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