Index: public/platform/WebCryptoAlgorithmParams.h |
diff --git a/public/platform/WebCryptoAlgorithmParams.h b/public/platform/WebCryptoAlgorithmParams.h |
index 8d8cc8705c3b7a9901b19886042b7b8afedaff4f..2315b493751214229441d9234ca8f37103472d73 100644 |
--- a/public/platform/WebCryptoAlgorithmParams.h |
+++ b/public/platform/WebCryptoAlgorithmParams.h |
@@ -247,6 +247,46 @@ private: |
const unsigned m_saltLengthBytes; |
}; |
+class WebCryptoEcdsaParams : public WebCryptoAlgorithmParamsWithHash { |
+public: |
+ explicit WebCryptoEcdsaParams(const WebCryptoAlgorithm& hash) |
+ : WebCryptoAlgorithmParamsWithHash(hash) |
+ { |
+ } |
+ |
+ virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeEcdsaParams; } |
+}; |
+ |
+class WebCryptoEcKeyGenParams : public WebCryptoAlgorithmParams { |
+public: |
+ explicit WebCryptoEcKeyGenParams(WebCryptoNamedCurve namedCurve) |
+ : m_namedCurve(namedCurve) |
+ { |
+ } |
+ |
+ virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeEcKeyGenParams; } |
+ |
+ WebCryptoNamedCurve namedCurve() const { return m_namedCurve; } |
+ |
+private: |
+ const WebCryptoNamedCurve m_namedCurve; |
+}; |
+ |
+class WebCryptoEcKeyImportParams : public WebCryptoAlgorithmParams { |
+public: |
+ explicit WebCryptoEcKeyImportParams(WebCryptoNamedCurve namedCurve) |
+ : m_namedCurve(namedCurve) |
+ { |
+ } |
+ |
+ virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeEcKeyImportParams; } |
+ |
+ WebCryptoNamedCurve namedCurve() const { return m_namedCurve; } |
+ |
+private: |
+ const WebCryptoNamedCurve m_namedCurve; |
+}; |
+ |
} // namespace blink |
#endif |