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

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

Issue 18033004: WebCrypto: Add WebKit API structure for keys. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
Index: Source/modules/crypto/Key.idl
diff --git a/Source/modules/crypto/CryptoOperation.idl b/Source/modules/crypto/Key.idl
similarity index 83%
copy from Source/modules/crypto/CryptoOperation.idl
copy to Source/modules/crypto/Key.idl
index ba683a1b77ed663ff338999db41b9e1e439a4682..f66338594f971250d4e672e49bcf4987b8eb258b 100644
--- a/Source/modules/crypto/CryptoOperation.idl
+++ b/Source/modules/crypto/Key.idl
@@ -28,8 +28,27 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+enum KeyType {
+ "secret",
+ "public",
+ "private"
+};
+
+enum KeyUsage {
+ "encrypt",
+ "decrypt",
+ "sign",
+ "verify",
+ "derive",
+ "wrap",
+ "unwrap"
+};
+
[
NoInterfaceObject,
-] interface CryptoOperation {
+] interface Key {
+ readonly attribute KeyType type;
+ readonly attribute boolean extractable;
readonly attribute Algorithm algorithm;
+ readonly attribute KeyUsage[] keyUsage;
abarth-chromium 2013/07/03 18:01:41 KeyUsage[] -> sequence<KeyUsage> ? Maybe what
eroman 2013/07/03 19:18:06 The web crypto spec currently defines it as an arr
};

Powered by Google App Engine
This is Rietveld 408576698