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
This seems to be a simple copy-paste mistake: The key parameter passed to exportKey is of known type CryptoKey, and therefore cannot be of type JsonWebKey dictionary. Also, this step is identical to the importKey step, which is NOT the case for any other algorithm. (All other AES-algorithms instead initialize jwk with the step Let jwk be a new [JsonWebKey](https://w3c.github.io/webcrypto/#dfn-JsonWebKey) dictionary.)
Or is there a keyData variable that I overlooked, or some other way this is intended?
The text was updated successfully, but these errors were encountered:
Specifically the AES-CBC has a weird way to initialize the jwk:
https://w3c.github.io/webcrypto/#aes-cbc-operations
This seems to be a simple copy-paste mistake: The
key
parameter passed toexportKey
is of known type CryptoKey, and therefore cannot be of type JsonWebKey dictionary. Also, this step is identical to theimportKey
step, which is NOT the case for any other algorithm. (All other AES-algorithms instead initialize jwk with the stepLet jwk be a new [JsonWebKey](https://w3c.github.io/webcrypto/#dfn-JsonWebKey) dictionary.
)Or is there a
keyData
variable that I overlooked, or some other way this is intended?The text was updated successfully, but these errors were encountered: