Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2214)

Unified Diff: Source/modules/crypto/SubtleCrypto.idl

Issue 267133002: [webcrypto] Allow both ArrayBuffer and ArrayBufferView as inputs to crypto.subtle methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename ArrayBytes --> ArrayPiece Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/crypto/SubtleCrypto.cpp ('k') | Source/wtf/ArrayPiece.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/SubtleCrypto.idl
diff --git a/Source/modules/crypto/SubtleCrypto.idl b/Source/modules/crypto/SubtleCrypto.idl
index b36f5dc898d2cb6f4269bc003130390ffd08ef72..72b541b3d680c5fe487fecbf6d8bb928c7304378 100644
--- a/Source/modules/crypto/SubtleCrypto.idl
+++ b/Source/modules/crypto/SubtleCrypto.idl
@@ -33,16 +33,32 @@
NoInterfaceObject
] interface SubtleCrypto {
Promise encrypt(Dictionary algorithm, Key key, ArrayBufferView data);
+ Promise encrypt(Dictionary algorithm, Key key, ArrayBuffer data);
+
Promise decrypt(Dictionary algorithm, Key key, ArrayBufferView data);
+ Promise decrypt(Dictionary algorithm, Key key, ArrayBuffer data);
+
Promise sign(Dictionary algorithm, Key key, ArrayBufferView data);
+ Promise sign(Dictionary algorithm, Key key, ArrayBuffer data);
+
[ImplementedAs=verifySignature] Promise verify(Dictionary algorithm, Key key, ArrayBufferView signature, ArrayBufferView data);
+ [ImplementedAs=verifySignature] Promise verify(Dictionary algorithm, Key key, ArrayBufferView signature, ArrayBuffer data);
+ [ImplementedAs=verifySignature] Promise verify(Dictionary algorithm, Key key, ArrayBuffer signature, ArrayBuffer data);
+ [ImplementedAs=verifySignature] Promise verify(Dictionary algorithm, Key key, ArrayBuffer signature, ArrayBufferView data);
+
Promise digest(Dictionary algorithm, ArrayBufferView data);
+ Promise digest(Dictionary algorithm, ArrayBuffer data);
Promise generateKey(Dictionary algorithm, boolean extractable, DOMString[] keyUsages);
+
Promise importKey(DOMString format, ArrayBufferView keyData, Dictionary algorithm, boolean extractable, DOMString[] keyUsages);
+ Promise importKey(DOMString format, ArrayBuffer keyData, Dictionary algorithm, boolean extractable, DOMString[] keyUsages);
+
Promise exportKey(DOMString format, Key key);
Promise wrapKey(DOMString format, Key key, Key wrappingKey, Dictionary wrapAlgorithm);
+
Promise unwrapKey(DOMString format, ArrayBufferView wrappedKey, Key unwrappingKey, Dictionary unwrapAlgorithm, Dictionary unwrappedKeyAlgorithm, boolean extractable, DOMString[] keyUsages);
+ Promise unwrapKey(DOMString format, ArrayBuffer wrappedKey, Key unwrappingKey, Dictionary unwrapAlgorithm, Dictionary unwrappedKeyAlgorithm, boolean extractable, DOMString[] keyUsages);
};
« no previous file with comments | « Source/modules/crypto/SubtleCrypto.cpp ('k') | Source/wtf/ArrayPiece.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698