-
Notifications
You must be signed in to change notification settings - Fork 26
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
wrapKey permission is not sufficient in iOS Safari to wrap a key #52
Comments
This is because I'm not sure there is another way to resolve it. I think the best way is to use |
So, how come it works in Chrome with just wrapKey without decrypt ? Is this non-standard ? |
Same question. When I user RSA-OAEP, got a error of "CryptoKey has wrong key usage. Must be 'encrypt'". |
@borisreitman webcrypto-liner uses native Crypto if it's possible. This is why it doesn't throw error on |
@FalconIA this is source code for RSA wrapKey https://github.com/PeculiarVentures/webcrypto-liner/blob/master/src/rsa/crypto.ts#L230-L248 As I told before |
@FalconIA @borisreitman I published new version of |
The wrapping_key in this code has a "wrapKey" permission. However, this gave an error when I tired to used it. But, when the wrapping key also has an "encrypt" permission, there is no error.
The "wrapKey" permission should be sufficient, and it works in other browsers.
The text was updated successfully, but these errors were encountered: