CryptoKey.idl 445 B

123456789101112
  1. enum KeyType { "public", "private", "secret" };
  2. enum KeyUsage { "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", "unwrapKey" };
  3. // https://w3c.github.io/webcrypto/#cryptokey-interface
  4. [SecureContext,Exposed=(Window,Worker),Serializable]
  5. interface CryptoKey {
  6. readonly attribute KeyType type;
  7. readonly attribute boolean extractable;
  8. readonly attribute object algorithm;
  9. readonly attribute object usages;
  10. };