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

Unified Diff: public/platform/WebCryptoKeyAlgorithmParams.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/WebCryptoKeyAlgorithmParams.h
diff --git a/public/platform/WebCryptoKeyAlgorithmParams.h b/public/platform/WebCryptoKeyAlgorithmParams.h
index 3450c02e427ae1c2eaeaaf52f5372e84a12a8c7a..ce4dbd4d9b306b0cc1f890182c4a10b420eebc2d 100644
--- a/public/platform/WebCryptoKeyAlgorithmParams.h
+++ b/public/platform/WebCryptoKeyAlgorithmParams.h
@@ -55,6 +55,7 @@ enum WebCryptoKeyAlgorithmParamsType {
WebCryptoKeyAlgorithmParamsTypeAes,
WebCryptoKeyAlgorithmParamsTypeRsaHashed,
WebCryptoKeyAlgorithmParamsTypeEc,
+ WebCryptoKeyAlgorithmParamsTypeKdf,
eroman 2015/01/07 00:40:31 Same comment as earlier.
nharper 2015/01/08 00:58:40 Done.
};
class WebCryptoKeyAlgorithmParams {
@@ -206,6 +207,19 @@ private:
const WebCryptoNamedCurve m_namedCurve;
};
+class WebCryptoKdfKeyAlgorithmParams : public WebCryptoKeyAlgorithmParams {
eroman 2015/01/07 00:40:31 Same comment as earlier. I don't think there is va
nharper 2015/01/08 00:58:39 Done.
+public:
+ virtual WebCryptoKeyAlgorithmParamsType type() const
+ {
+ return WebCryptoKeyAlgorithmParamsTypeKdf;
+ }
+
+ virtual void writeToDictionary(WebCryptoKeyAlgorithmDictionary* dict) const
+ {
+ return;
+ }
+};
+
} // namespace blink
#endif
« public/platform/WebCryptoKeyAlgorithm.h ('K') | « public/platform/WebCryptoKeyAlgorithm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698