You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @thinkagain-debug, thanks for noting this (and providing some helpful code to exercise the problem quickly).
To reflect this difference in behavior between browsers, I would suggest adding a note that describes this limitation for Safari and Safari for iOS on the generateKey and importKey features in SubtleCrypto.json. The spec doesn't seem to require support for any particular key length, so I don't think we need to change the support data beyond a note. For the note itself, I'd suggest a wording along the lines of "Throws an <code>OperationError</code> for RSA-OAEP keys greater than 4096 bits long." or similar.
I'd welcome a PR from you (or another contributor) to update the features. Thank you!
What information was incorrect, unhelpful, or incomplete?
importKey throws an error: [Log] DataError: Data provided to an operation does not meet requirements —
also generateKey does not work for 8192 bit key length
What did you expect to see?
imported key to crypt data
Did you test this? If so, how?
same code works on other browsers like firefox, chrome
MDN page report details
api.SubtleCrypto.importKey
The text was updated successfully, but these errors were encountered: