mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibWeb: Add roundtrip SubtleCrypto import/export test using JWK
This commit is contained in:
parent
95303ae4a1
commit
0743a33266
Notes:
sideshowbarker
2024-07-17 06:54:15 +09:00
Author: https://github.com/ADKaster
Commit: 0743a33266
Pull-request: https://github.com/SerenityOS/serenity/pull/23596
Reviewed-by: https://github.com/alimpfard
3 changed files with 98 additions and 2 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue