Index: modules/crypto/SubtleCrypto.idl |
diff --git a/modules/crypto/SubtleCrypto.idl b/modules/crypto/SubtleCrypto.idl |
index d8f93f4c00424ce5a2af3aa56835f29660a8cace..b283fe25c2b1e596f4576c6c00769bf455fdeeb0 100644 |
--- a/modules/crypto/SubtleCrypto.idl |
+++ b/modules/crypto/SubtleCrypto.idl |
@@ -31,12 +31,13 @@ |
[ |
NoInterfaceObject, |
] interface SubtleCrypto { |
- [RaisesException] CryptoOperation encrypt(Dictionary algorithm); |
- [RaisesException] CryptoOperation decrypt(Dictionary algorithm); |
- [RaisesException] CryptoOperation sign(Dictionary algorithm); |
- [RaisesException, ImplementedAs=verifySignature] CryptoOperation verify(Dictionary algorithm); |
+ [RaisesException] CryptoOperation encrypt(Dictionary algorithm, Key key); |
+ [RaisesException] CryptoOperation decrypt(Dictionary algorithm, Key key); |
+ [RaisesException] CryptoOperation sign(Dictionary algorithm, Key key); |
+ [RaisesException, ImplementedAs=verifySignature] CryptoOperation verify(Dictionary algorithm, Key key, ArrayBufferView signature); |
[RaisesException] CryptoOperation digest(Dictionary algorithm); |
+ [RaisesException] any generateKey(Dictionary algorithm, boolean extractable, DOMString[] keyUsages); |
[RaisesException] any importKey(DOMString format, ArrayBufferView keyData, Dictionary algorithm, boolean extractable, DOMString[] keyUsages); |
}; |