mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibWeb: Add the CryptoKey interface
This commit is contained in:
parent
69ffdd5738
commit
a8ddf6c2a4
Notes:
sideshowbarker
2024-07-17 11:30:05 +09:00
Author: https://github.com/stelar7
Commit: a8ddf6c2a4
Pull-request: https://github.com/SerenityOS/serenity/pull/22346
Reviewed-by: https://github.com/ADKaster
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