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

Unified Diff: public/platform/WebCryptoKeyAlgorithm.h

Issue 789733009: Implement HKDF for WebCrypto (blink-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add serialization/deserialization 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/WebCryptoKeyAlgorithm.h
diff --git a/public/platform/WebCryptoKeyAlgorithm.h b/public/platform/WebCryptoKeyAlgorithm.h
index af0cbc6ff1f7d103c621921024feefa7b061d2a5..74500a56ac6a6108cc75dac9262126ee1b289f81 100644
--- a/public/platform/WebCryptoKeyAlgorithm.h
+++ b/public/platform/WebCryptoKeyAlgorithm.h
@@ -63,6 +63,7 @@ public:
BLINK_PLATFORM_EXPORT static WebCryptoKeyAlgorithm createHmac(WebCryptoAlgorithmId hash, unsigned keyLengthBits);
BLINK_PLATFORM_EXPORT static WebCryptoKeyAlgorithm createRsaHashed(WebCryptoAlgorithmId, unsigned modulusLengthBits, const unsigned char* publicExponent, unsigned publicExponentSize, WebCryptoAlgorithmId hash);
BLINK_PLATFORM_EXPORT static WebCryptoKeyAlgorithm createEc(WebCryptoAlgorithmId, WebCryptoNamedCurve);
+ BLINK_PLATFORM_EXPORT static WebCryptoKeyAlgorithm createKdf(WebCryptoAlgorithmId);
~WebCryptoKeyAlgorithm() { reset(); }
@@ -86,6 +87,7 @@ public:
BLINK_PLATFORM_EXPORT WebCryptoHmacKeyAlgorithmParams* hmacParams() const;
BLINK_PLATFORM_EXPORT WebCryptoRsaHashedKeyAlgorithmParams* rsaHashedParams() const;
BLINK_PLATFORM_EXPORT WebCryptoEcKeyAlgorithmParams* ecParams() const;
+ BLINK_PLATFORM_EXPORT WebCryptoKdfKeyAlgorithmParams* kdfParams() const;
eroman 2015/01/07 00:40:31 Why is this necessary? It looks like your other ch
nharper 2015/01/08 00:58:39 It was added to make the switch statement in Seria
// Write the algorithm parameters to a dictionary.
BLINK_PLATFORM_EXPORT void writeToDictionary(WebCryptoKeyAlgorithmDictionary*) const;

Powered by Google App Engine
This is Rietveld 408576698