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:
parent
69ffdd5738
commit
a8ddf6c2a4
7 changed files with 104 additions and 0 deletions
12
Userland/Libraries/LibWeb/Crypto/CryptoKey.idl
Normal file
12
Userland/Libraries/LibWeb/Crypto/CryptoKey.idl
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue