| Index: public/platform/WebCryptoAlgorithmParams.h
|
| diff --git a/public/platform/WebCryptoAlgorithmParams.h b/public/platform/WebCryptoAlgorithmParams.h
|
| index 61bacf539aab87394968c4a765b0d58ee4355d47..a3ee8c79db0e3c5b34d463776de75800428dfda7 100644
|
| --- a/public/platform/WebCryptoAlgorithmParams.h
|
| +++ b/public/platform/WebCryptoAlgorithmParams.h
|
| @@ -337,6 +337,26 @@ private:
|
| const unsigned short m_lengthBits;
|
| };
|
|
|
| +class WebCryptoPbkdf2Params : public WebCryptoAlgorithmParamsWithHash {
|
| +public:
|
| + explicit WebCryptoPbkdf2Params(const WebCryptoAlgorithm& hash, const unsigned char* salt,
|
| + unsigned saltLength, unsigned long 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 long iterations() const { return m_iterations; }
|
| +
|
| +private:
|
| + const WebVector<unsigned char> m_salt;
|
| + const unsigned long m_iterations;
|
| +};
|
| +
|
| } // namespace blink
|
|
|
| #endif
|
|
|