1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

LibWeb: Add the CryptoKey interface

This commit is contained in:
stelar7 2023-12-15 20:25:35 +01:00 committed by Andrew Kaster
parent 69ffdd5738
commit a8ddf6c2a4
7 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,12 @@
enum KeyType { "public", "private", "secret" };
enum KeyUsage { "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", "unwrapKey" };
// https://w3c.github.io/webcrypto/#cryptokey-interface
[SecureContext,Exposed=(Window,Worker),Serializable]
interface CryptoKey {
readonly attribute KeyType type;
readonly attribute boolean extractable;
readonly attribute object algorithm;
readonly attribute object usages;
};