Index: public/platform/WebCryptoAlgorithm.h |
diff --git a/public/platform/WebCryptoAlgorithm.h b/public/platform/WebCryptoAlgorithm.h |
index 7186cd5645bb3a7afb48be179bbccba9d7f33e68..dcfcf97d28317f2675b260acc78c23f9620a7174 100644 |
--- a/public/platform/WebCryptoAlgorithm.h |
+++ b/public/platform/WebCryptoAlgorithm.h |
@@ -68,8 +68,18 @@ enum WebCryptoAlgorithmId { |
WebCryptoAlgorithmIdAesCtr, |
WebCryptoAlgorithmIdAesKw, |
WebCryptoAlgorithmIdRsaPss, |
+ WebCryptoAlgorithmIdEcdsa, |
#if INSIDE_BLINK |
- WebCryptoAlgorithmIdLast = WebCryptoAlgorithmIdRsaPss, |
+ WebCryptoAlgorithmIdLast = WebCryptoAlgorithmIdEcdsa, |
+#endif |
+}; |
+ |
+enum WebCryptoNamedCurve { |
+ WebCryptoNamedCurveP256, |
+ WebCryptoNamedCurveP384, |
+ WebCryptoNamedCurveP521, |
+#if INSIDE_BLINK |
+ WebCryptoNamedCurveLast = WebCryptoNamedCurveP521, |
#endif |
}; |
@@ -85,6 +95,9 @@ enum WebCryptoAlgorithmParamsType { |
WebCryptoAlgorithmParamsTypeRsaOaepParams, |
WebCryptoAlgorithmParamsTypeAesCtrParams, |
WebCryptoAlgorithmParamsTypeRsaPssParams, |
+ WebCryptoAlgorithmParamsTypeEcdsaParams, |
+ WebCryptoAlgorithmParamsTypeEcKeyGenParams, |
+ WebCryptoAlgorithmParamsTypeEcKeyImportParams, |
}; |
struct WebCryptoAlgorithmInfo { |
@@ -111,6 +124,9 @@ class WebCryptoAesCtrParams; |
class WebCryptoRsaHashedKeyGenParams; |
class WebCryptoRsaHashedImportParams; |
class WebCryptoRsaPssParams; |
+class WebCryptoEcdsaParams; |
+class WebCryptoEcKeyGenParams; |
+class WebCryptoEcKeyImportParams; |
class WebCryptoAlgorithmParams; |
class WebCryptoAlgorithmPrivate; |
@@ -164,6 +180,9 @@ public: |
BLINK_PLATFORM_EXPORT const WebCryptoRsaHashedImportParams* rsaHashedImportParams() const; |
BLINK_PLATFORM_EXPORT const WebCryptoRsaHashedKeyGenParams* rsaHashedKeyGenParams() const; |
BLINK_PLATFORM_EXPORT const WebCryptoRsaPssParams* rsaPssParams() const; |
+ BLINK_PLATFORM_EXPORT const WebCryptoEcdsaParams* ecdsaParams() const; |
+ BLINK_PLATFORM_EXPORT const WebCryptoEcKeyGenParams* ecKeyGenParams() const; |
+ BLINK_PLATFORM_EXPORT const WebCryptoEcKeyImportParams* ecKeyImportParams() const; |
// Returns true if the provided algorithm ID is for a hash (in other words, SHA-*) |
BLINK_PLATFORM_EXPORT static bool isHash(WebCryptoAlgorithmId); |