Index: Source/modules/crypto/Key.h |
diff --git a/Source/modules/crypto/Key.h b/Source/modules/crypto/Key.h |
index 4b9c008cace9a991350f7dc4e96b2adc48063bbb..2d222d2b99f2fe752bf6ddf0857e85ea463664cb 100644 |
--- a/Source/modules/crypto/Key.h |
+++ b/Source/modules/crypto/Key.h |
@@ -51,6 +51,12 @@ public: |
Algorithm* algorithm(); |
Vector<String> usages() const; |
+ static bool parseFormat(const String&, WebKit::WebCryptoKeyFormat&); |
+ |
+ // Parses KeyUsage strings to a WebCryptoKeyUsageMask. If any element is |
+ // unrecognized, returns false. |
+ static bool parseUsageMask(const Vector<String>&, WebKit::WebCryptoKeyUsageMask&); |
+ |
protected: |
explicit Key(const WebKit::WebCryptoKey&); |