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/WebCryptoAlgorithmParams.h

Issue 779723002: WebCrypto: Add parsing for the algorithm parameter AesDerivedKey. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | « public/platform/WebCryptoAlgorithm.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebCryptoAlgorithmParams.h
diff --git a/public/platform/WebCryptoAlgorithmParams.h b/public/platform/WebCryptoAlgorithmParams.h
index e617f086c082441c5b368fd02d329c5bf933b6ca..625b0471ceefec8502a10e664da3b5149475f95b 100644
--- a/public/platform/WebCryptoAlgorithmParams.h
+++ b/public/platform/WebCryptoAlgorithmParams.h
@@ -322,6 +322,21 @@ private:
const WebCryptoKey m_publicKey;
};
+class WebCryptoAesDerivedKeyParams : public WebCryptoAlgorithmParams {
+public:
+ explicit WebCryptoAesDerivedKeyParams(unsigned short lengthBits)
+ : m_lengthBits(lengthBits)
+ {
+ }
+
+ virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeAesDerivedKeyParams; }
jochen (gone - plz use gerrit) 2014/12/08 12:09:16 override
eroman 2014/12/08 18:08:59 Done.
+
+ unsigned short lengthBits() const { return m_lengthBits; }
+
+private:
+ const unsigned short m_lengthBits;
+};
+
} // namespace blink
#endif
« no previous file with comments | « public/platform/WebCryptoAlgorithm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698