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

Unified Diff: public/platform/WebCryptoAlgorithm.h

Issue 820523003: [webcrypto] Implement PBKDF2 (blink-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added Layout tests Created 5 years, 11 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
Index: public/platform/WebCryptoAlgorithm.h
diff --git a/public/platform/WebCryptoAlgorithm.h b/public/platform/WebCryptoAlgorithm.h
index 63dcdaa55afd172f4a002be7548ce89a56085d60..b1b95b89e208a7eca069a603292233bc7ad2f43a 100644
--- a/public/platform/WebCryptoAlgorithm.h
+++ b/public/platform/WebCryptoAlgorithm.h
@@ -70,8 +70,9 @@ enum WebCryptoAlgorithmId {
WebCryptoAlgorithmIdRsaPss,
WebCryptoAlgorithmIdEcdsa,
WebCryptoAlgorithmIdEcdh,
+ WebCryptoAlgorithmIdPbkdf2,
#if INSIDE_BLINK
- WebCryptoAlgorithmIdLast = WebCryptoAlgorithmIdEcdh,
+ WebCryptoAlgorithmIdLast = WebCryptoAlgorithmIdPbkdf2,
#endif
};
@@ -101,6 +102,7 @@ enum WebCryptoAlgorithmParamsType {
WebCryptoAlgorithmParamsTypeEcKeyImportParams,
WebCryptoAlgorithmParamsTypeEcdhKeyDeriveParams,
WebCryptoAlgorithmParamsTypeAesDerivedKeyParams,
+ WebCryptoAlgorithmParamsTypePbkdf2Params,
};
struct WebCryptoAlgorithmInfo {
@@ -132,6 +134,7 @@ class WebCryptoEcKeyGenParams;
class WebCryptoEcKeyImportParams;
class WebCryptoEcdhKeyDeriveParams;
class WebCryptoAesDerivedKeyParams;
+class WebCryptoPbkdf2Params;
class WebCryptoAlgorithmParams;
class WebCryptoAlgorithmPrivate;
@@ -190,6 +193,7 @@ public:
BLINK_PLATFORM_EXPORT const WebCryptoEcKeyImportParams* ecKeyImportParams() const;
BLINK_PLATFORM_EXPORT const WebCryptoEcdhKeyDeriveParams* ecdhKeyDeriveParams() const;
BLINK_PLATFORM_EXPORT const WebCryptoAesDerivedKeyParams* aesDerivedKeyParams() const;
+ BLINK_PLATFORM_EXPORT const WebCryptoPbkdf2Params* pbkdf2Params() const;
// Returns true if the provided algorithm ID is for a hash (in other words, SHA-*)
BLINK_PLATFORM_EXPORT static bool isHash(WebCryptoAlgorithmId);

Powered by Google App Engine
This is Rietveld 408576698