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

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: rebase onto master Created 7 years, 5 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/Key.cpp ('k') | Source/modules/crypto/WorkerCrypto.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « Source/modules/crypto/Key.cpp ('k') | Source/modules/crypto/WorkerCrypto.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698