blob: 8b3b983310467716a86e1ce307cf3f587d135ca1 [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.
#ifndef SRC_LEDGER_BIN_ENCRYPTION_PRIMITIVES_KDF_H_
#define SRC_LEDGER_BIN_ENCRYPTION_PRIMITIVES_KDF_H_
#include <string>
#include "src/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
#endif // SRC_LEDGER_BIN_ENCRYPTION_PRIMITIVES_KDF_H_