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

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: nit 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
« no previous file with comments | « Source/platform/exported/WebCryptoAlgorithm.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 8bb50b8220afc076db06e501fa39db2b66f8f3c7..7df6f3aeddb7e45328dd32dc18f53e1c8500aca6 100644
--- a/public/platform/WebCryptoAlgorithm.h
+++ b/public/platform/WebCryptoAlgorithm.h
@@ -71,8 +71,9 @@ enum WebCryptoAlgorithmId {
WebCryptoAlgorithmIdEcdsa,
WebCryptoAlgorithmIdEcdh,
WebCryptoAlgorithmIdHkdf,
+ WebCryptoAlgorithmIdPbkdf2,
#if INSIDE_BLINK
- WebCryptoAlgorithmIdLast = WebCryptoAlgorithmIdHkdf,
+ WebCryptoAlgorithmIdLast = WebCryptoAlgorithmIdPbkdf2,
#endif
};
@@ -103,6 +104,7 @@ enum WebCryptoAlgorithmParamsType {
WebCryptoAlgorithmParamsTypeEcdhKeyDeriveParams,
WebCryptoAlgorithmParamsTypeAesDerivedKeyParams,
WebCryptoAlgorithmParamsTypeHkdfParams,
+ WebCryptoAlgorithmParamsTypePbkdf2Params,
};
struct WebCryptoAlgorithmInfo {
@@ -135,6 +137,7 @@ class WebCryptoEcKeyImportParams;
class WebCryptoEcdhKeyDeriveParams;
class WebCryptoAesDerivedKeyParams;
class WebCryptoHkdfParams;
+class WebCryptoPbkdf2Params;
class WebCryptoAlgorithmParams;
class WebCryptoAlgorithmPrivate;
@@ -194,6 +197,7 @@ public:
BLINK_PLATFORM_EXPORT const WebCryptoEcdhKeyDeriveParams* ecdhKeyDeriveParams() const;
BLINK_PLATFORM_EXPORT const WebCryptoAesDerivedKeyParams* aesDerivedKeyParams() const;
BLINK_PLATFORM_EXPORT const WebCryptoHkdfParams* hkdfParams() 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);
« no previous file with comments | « Source/platform/exported/WebCryptoAlgorithm.cpp ('k') | public/platform/WebCryptoAlgorithmParams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698