LibWeb: Add roundtrip SubtleCrypto import/export test using JWK

This commit is contained in:
Andrew Kaster 2024-03-21 18:54:46 -06:00 committed by Andrew Kaster
commit 0743a33266
Notes: sideshowbarker 2024-07-17 06:54:15 +09:00
3 changed files with 98 additions and 2 deletions

View file

@ -21,8 +21,6 @@
"unwrapKey",
]);
// FIXME: Create a roundtrip test that starts with a key object and imports it, then exports it.
let exportedPublicKey = await window.crypto.subtle.exportKey("jwk", key.publicKey);
println(`exportedPublicKey kwt: ${exportedPublicKey.kty}`);
println(`exportedPublicKey alg: ${exportedPublicKey.alg}`);