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

Unified Diff: public/platform/WebCryptoAlgorithm.h

Issue 707743002: WebCrypto: Add ECDSA algorithm (Blink side). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase onto master Created 6 years, 1 month 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/platform/exported/WebCryptoKeyAlgorithm.cpp ('k') | public/platform/WebCryptoAlgorithmParams.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/platform/exported/WebCryptoKeyAlgorithm.cpp ('k') | public/platform/WebCryptoAlgorithmParams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698