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

Unified Diff: public/platform/WebCryptoAlgorithmParams.h

Issue 657243002: [webcrypto] Add parameter parsing for RSA-PSS. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | « 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 1038c538f1382dd51092e96133cccea24bef1437..8d8cc8705c3b7a9901b19886042b7b8afedaff4f 100644
--- a/public/platform/WebCryptoAlgorithmParams.h
+++ b/public/platform/WebCryptoAlgorithmParams.h
@@ -232,6 +232,21 @@ private:
const WebVector<unsigned char> m_optionalLabel;
};
+class WebCryptoRsaPssParams : public WebCryptoAlgorithmParams {
+public:
+ explicit WebCryptoRsaPssParams(unsigned saltLengthBytes)
+ : m_saltLengthBytes(saltLengthBytes)
+ {
+ }
+
+ virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeRsaPssParams; }
+
+ unsigned saltLengthBytes() const { return m_saltLengthBytes; }
+
+private:
+ const unsigned m_saltLengthBytes;
+};
+
} // 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