[email protected] | 48b581d | 2013-02-23 06:47:22 | [diff] [blame] | 1 | // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CRYPTO_HKDF_H_ | ||||
6 | #define CRYPTO_HKDF_H_ | ||||
7 | |||||
avi | dd373b8b | 2015-12-21 21:34:43 | [diff] [blame] | 8 | #include <stddef.h> |
avi | dd373b8b | 2015-12-21 21:34:43 | [diff] [blame] | 9 | |
Victor Vasiliev | 01cb1c8 | 2018-07-09 19:30:25 | [diff] [blame] | 10 | #include <string> |
[email protected] | 48b581d | 2013-02-23 06:47:22 | [diff] [blame] | 11 | |
[email protected] | daf079a | 2013-04-17 21:42:40 | [diff] [blame] | 12 | #include "base/strings/string_piece.h" |
[email protected] | 48b581d | 2013-02-23 06:47:22 | [diff] [blame] | 13 | #include "crypto/crypto_export.h" |
14 | |||||
15 | namespace crypto { | ||||
16 | |||||
Victor Vasiliev | 01cb1c8 | 2018-07-09 19:30:25 | [diff] [blame] | 17 | CRYPTO_EXPORT |
18 | std::string HkdfSha256(base::StringPiece secret, | ||||
19 | base::StringPiece salt, | ||||
20 | base::StringPiece info, | ||||
21 | size_t derived_key_size); | ||||
[email protected] | 48b581d | 2013-02-23 06:47:22 | [diff] [blame] | 22 | |
23 | } // namespace crypto | ||||
24 | |||||
25 | #endif // CRYPTO_HKDF_H_ |