-
Notifications
You must be signed in to change notification settings - Fork 56
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 importKey never sets the key's [[type]] internal slot #376
Comments
Yeah, it seems this text is missing :) Not just in the import key operations, but also in the generate key operations, btw. Do you feel like making a PR for this as well? :) (If not I can also do it.) |
I'd be happy to! Since this is definitely not just "editorial", I just |
I think it is editorial since it's not intended to change implementations' existing behavior. You could also argue this behavior is described by the text saying that "Opaque keying material, including that used for symmetric algorithms, is represented by But yes, getting a W3 account might make it easier to contribute in general :) |
EDIT: Turns out, this is already tested: https://github.com/web-platform-tests/wpt/blob/master/WebCryptoAPI/generateKey/successes.js#L70 |
I don't see where [[type]] is being set in the case of AES-CBC importKey, or in fact any of the AES variants. Maybe I overlooked it, but where?
CryptoKey.[[type]]
slot, and never writes to it: https://w3c.github.io/webcrypto/#SubtleCrypto-method-importKeyI suggest to add a step like
Set the [[type]] internal slot of key to "secret".
to each AES algorithm, and also HMAC.Or maybe I just missed a very important page? :-)
EDIT: Originally reported together with some false-positive issues: #373.
The text was updated successfully, but these errors were encountered: