| Index: public/platform/WebCryptoAlgorithmParams.h
|
| diff --git a/public/platform/WebCryptoAlgorithmParams.h b/public/platform/WebCryptoAlgorithmParams.h
|
| index 61bacf539aab87394968c4a765b0d58ee4355d47..0108115134ea1d92148d0417af371e0fb763a27f 100644
|
| --- a/public/platform/WebCryptoAlgorithmParams.h
|
| +++ b/public/platform/WebCryptoAlgorithmParams.h
|
| @@ -337,6 +337,29 @@ private:
|
| const unsigned short m_lengthBits;
|
| };
|
|
|
| +class WebCryptoHkdfParams : public WebCryptoAlgorithmParamsWithHash {
|
| +public:
|
| + WebCryptoHkdfParams(const WebCryptoAlgorithm& hash, const unsigned char* salt, unsigned saltSize, const unsigned char* info, unsigned infoSize)
|
| + : WebCryptoAlgorithmParamsWithHash(hash)
|
| + , m_salt(salt, saltSize)
|
| + , m_info(info, infoSize)
|
| + {
|
| + }
|
| +
|
| + const WebVector<unsigned char>& salt() const { return m_salt; }
|
| +
|
| + const WebVector<unsigned char>& info() const { return m_info; }
|
| +
|
| + virtual WebCryptoAlgorithmParamsType type() const
|
| + {
|
| + return WebCryptoAlgorithmParamsTypeHkdfParams;
|
| + }
|
| +
|
| +private:
|
| + const WebVector<unsigned char> m_salt;
|
| + const WebVector<unsigned char> m_info;
|
| +};
|
| +
|
| } // namespace blink
|
|
|
| #endif
|
|
|