Chromium Code Reviews| Index: public/platform/WebCryptoAlgorithmParams.h |
| diff --git a/public/platform/WebCryptoAlgorithmParams.h b/public/platform/WebCryptoAlgorithmParams.h |
| index 61bacf539aab87394968c4a765b0d58ee4355d47..c3ec8272ca1546c8477dbe9e1e61edcf9233e083 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: |
| + WebVector<unsigned char> m_salt; |
|
eroman
2014/12/23 20:58:24
const
nharper
2014/12/23 22:46:59
Done.
|
| + WebVector<unsigned char> m_info; |
| +}; |
| + |
| } // namespace blink |
| #endif |