| Index: public/platform/WebCryptoAlgorithmParams.h
|
| diff --git a/public/platform/WebCryptoAlgorithmParams.h b/public/platform/WebCryptoAlgorithmParams.h
|
| index 0108115134ea1d92148d0417af371e0fb763a27f..d6b84e945e67d5caa9e59def103c91951fc959d5 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:
|
| + WebCryptoPbkdf2Params(const WebCryptoAlgorithm& hash, const unsigned char* salt,
|
| + unsigned saltLength, unsigned iterations)
|
| + : 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 iterations() const { return m_iterations; }
|
| +
|
| +private:
|
| + const WebVector<unsigned char> m_salt;
|
| + const unsigned m_iterations;
|
| +};
|
| +
|
| } // namespace blink
|
|
|
| #endif
|
|
|