Implement HMAC key generation (#34278)

* Implement HMAC key generation

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2024-11-18 18:28:24 +01:00 committed by GitHub
parent 11dfbd6f90
commit 2485bd9a63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 263 additions and 1874 deletions

View file

@ -104,6 +104,12 @@ dictionary HmacKeyAlgorithm : KeyAlgorithm {
required unsigned long length;
};
// https://w3c.github.io/webcrypto/#dfn-HmacKeyGenParams
dictionary HmacKeyGenParams : Algorithm {
required HashAlgorithmIdentifier hash;
[EnforceRange] unsigned long length;
};
// https://w3c.github.io/webcrypto/#hkdf-params
dictionary HkdfParams : Algorithm {
required HashAlgorithmIdentifier hash;