blob: 25459198f1e7477a2c9bb29075720ab16b08ebf0 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include <lib/fxl/strings/string_view.h>
namespace encryption {
// Compute the key derivation function defined by RFC 5869 using HMAC-256 and
// the given |length|. The usual salt and info are omitted due to the fact that
// our scheme always passes unique data to the KDF.
std::string HMAC256KDF(fxl::StringView data, size_t length);
} // namespace encryption