mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibWeb: Correctly set the key_usages on HMAC export
This commit is contained in:
Notes:
github-actions[bot]
2024-11-14 18:49:14 +00:00
Author: https://github.com/stelar7 Commit: https://github.com/LadybirdBrowser/ladybird/commit/19ee8ddec25 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2339 Reviewed-by: https://github.com/gmta
22
Tests/LibWeb/Text/input/Crypto/SubtleCrypto-hmac.html
Normal file
22
Tests/LibWeb/Text/input/Crypto/SubtleCrypto-hmac.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
asyncTest(async done => {
|
||||
await crypto.subtle.exportKey(
|
||||
"jwk",
|
||||
await crypto.subtle.generateKey(
|
||||
{
|
||||
name: "HMAC",
|
||||
hash: {
|
||||
name: "SHA-512",
|
||||
},
|
||||
},
|
||||
!0,
|
||||
["sign", "verify"]
|
||||
)
|
||||
);
|
||||
|
||||
println("Does not crash.");
|
||||
|
||||
done();
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user