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

Unified Diff: public/platform/WebCryptoAlgorithm.h

Issue 789733009: Implement HKDF for WebCrypto (blink-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move ASSERT(), add break 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/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 63dcdaa55afd172f4a002be7548ce89a56085d60..8bb50b8220afc076db06e501fa39db2b66f8f3c7 100644
--- a/public/platform/WebCryptoAlgorithm.h
+++ b/public/platform/WebCryptoAlgorithm.h
@@ -70,8 +70,9 @@ enum WebCryptoAlgorithmId {
WebCryptoAlgorithmIdRsaPss,
WebCryptoAlgorithmIdEcdsa,
WebCryptoAlgorithmIdEcdh,
+ WebCryptoAlgorithmIdHkdf,
#if INSIDE_BLINK
- WebCryptoAlgorithmIdLast = WebCryptoAlgorithmIdEcdh,
+ WebCryptoAlgorithmIdLast = WebCryptoAlgorithmIdHkdf,
#endif
};
@@ -101,6 +102,7 @@ enum WebCryptoAlgorithmParamsType {
WebCryptoAlgorithmParamsTypeEcKeyImportParams,
WebCryptoAlgorithmParamsTypeEcdhKeyDeriveParams,
WebCryptoAlgorithmParamsTypeAesDerivedKeyParams,
+ WebCryptoAlgorithmParamsTypeHkdfParams,
};
struct WebCryptoAlgorithmInfo {
@@ -132,6 +134,7 @@ class WebCryptoEcKeyGenParams;
class WebCryptoEcKeyImportParams;
class WebCryptoEcdhKeyDeriveParams;
class WebCryptoAesDerivedKeyParams;
+class WebCryptoHkdfParams;
class WebCryptoAlgorithmParams;
class WebCryptoAlgorithmPrivate;
@@ -190,9 +193,12 @@ 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 WebCryptoHkdfParams* hkdfParams() const;
// Returns true if the provided algorithm ID is for a hash (in other words, SHA-*)
BLINK_PLATFORM_EXPORT static bool isHash(WebCryptoAlgorithmId);
+ // Returns true if the provided algorithm ID is for a key derivation function
+ BLINK_PLATFORM_EXPORT static bool isKdf(WebCryptoAlgorithmId);
private:
BLINK_PLATFORM_EXPORT void assign(const WebCryptoAlgorithm& other);
« 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