#include "crypto/hkdf.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "base/check.h"
#include "crypto/hmac.h"
#include "third_party/boringssl/src/include/openssl/digest.h"
#include "third_party/boringssl/src/include/openssl/hkdf.h"
namespace crypto {
std::string HkdfSha256(std::string_view secret,
std::string_view salt,
std::string_view info,
size_t derived_key_size) { … }
std::vector<uint8_t> HkdfSha256(base::span<const uint8_t> secret,
base::span<const uint8_t> salt,
base::span<const uint8_t> info,
size_t derived_key_size) { … }
}