ladybird/Tests/LibWeb/Text/input/Crypto/SubtleCrypto-hmac.html

22 lines
495 B
HTML

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