Chromium Code Reviews| Index: public/platform/WebCryptoAlgorithmParams.h |
| diff --git a/public/platform/WebCryptoAlgorithmParams.h b/public/platform/WebCryptoAlgorithmParams.h |
| index 0108115134ea1d92148d0417af371e0fb763a27f..649f09a1b2c2ef8a3dd0f956c559fd97e3083ff9 100644 |
| --- a/public/platform/WebCryptoAlgorithmParams.h |
| +++ b/public/platform/WebCryptoAlgorithmParams.h |
| @@ -360,6 +360,26 @@ private: |
| const WebVector<unsigned char> m_info; |
| }; |
| +class WebCryptoPbkdf2Params : public WebCryptoAlgorithmParamsWithHash { |
| +public: |
| + explicit WebCryptoPbkdf2Params(const WebCryptoAlgorithm& hash, const unsigned char* salt, |
|
eroman
2015/01/14 21:12:22
remove "explicit" (we only use that for single-par
xun.sun
2015/01/15 17:13:29
Done.
|
| + unsigned saltLength, unsigned long iterations) |
|
eroman
2015/01/14 21:12:22
unsigned long --> unsigned int
xun.sun
2015/01/15 17:13:29
Done.
|
| + : WebCryptoAlgorithmParamsWithHash(hash) |
| + , m_salt(salt, saltLength) |
| + , m_iterations(iterations) |
| + { |
| + } |
| + |
| + virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypePbkdf2Params; } |
| + |
| + const WebVector<unsigned char>& salt() const { return m_salt; } |
| + unsigned long iterations() const { return m_iterations; } |
|
eroman
2015/01/14 21:12:22
unsigned long --> unsigned int
(unsigned long in
xun.sun
2015/01/15 17:13:29
Done.
|
| + |
| +private: |
| + const WebVector<unsigned char> m_salt; |
| + const unsigned long m_iterations; |
|
eroman
2015/01/14 21:12:22
unsigned int
xun.sun
2015/01/15 17:13:29
Done.
|
| +}; |
| + |
| } // namespace blink |
| #endif |