-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
feat(ext/crypto): JWK support for unwrapKey/wrapKey #13261
Conversation
update: WPT tests were flaky due to:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @seanwykes
@lucacasonato @littledivy please take a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Towards #11690 - implements
jwk
format forwrapKey
+unwrapKey
usingTextEncoder
/TextDecoder
forutf-8
.Additionally, fixes
usages
passed internally toencrypt()
/decrypt()
which was not working, since[un]wrappingKey
has[un]wrapKey
usage butdecrypt()
expects adecrypt
usage.Note:
subtle.encrypt()
is currently not validatingusages
.wpt(
WebCrypto/wrapKey_unwrapKey
) now passes 105/183AES-KW
andAES-GCM
algorithms.