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

AES-CBC export operation checks non-existent variable #374

Closed
BenWiederhake opened this issue Oct 25, 2024 · 0 comments · Fixed by #375
Closed

AES-CBC export operation checks non-existent variable #374

BenWiederhake opened this issue Oct 25, 2024 · 0 comments · Fixed by #375

Comments

@BenWiederhake
Copy link
Collaborator

Specifically the AES-CBC has a weird way to initialize the jwk:

https://w3c.github.io/webcrypto/#aes-cbc-operations
Bildschirmfoto_2024-10-25_08-08-43

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants