mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
LibWeb: Correctly set the key_usages on HMAC export
This commit is contained in:
parent
1c77135948
commit
19ee8ddec2
Notes:
github-actions[bot]
2024-11-14 18:49:14 +00:00
Author: https://github.com/stelar7
Commit: 19ee8ddec2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2339
Reviewed-by: https://github.com/gmta
3 changed files with 27 additions and 11 deletions
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>
|
Loading…
Add table
Add a link
Reference in a new issue