LibWeb: Correctly set the key_usages on HMAC export

This commit is contained in:
stelar7 2024-11-14 14:49:02 +01:00 committed by Andreas Kling
commit 19ee8ddec2
Notes: github-actions[bot] 2024-11-14 18:49:14 +00:00
3 changed files with 27 additions and 11 deletions

View 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>