// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Utility class for calculating the HMAC for a given message. We currently only // support SHA-1 and SHA-256 for the hash algorithm, but this can be extended // easily. Prefer the base::span and std::vector overloads over the // std::string_view and std::string overloads. #ifndef CRYPTO_HMAC_H_ #define CRYPTO_HMAC_H_ #include <stddef.h> #include <memory> #include <string_view> #include <vector> #include "base/containers/span.h" #include "crypto/crypto_export.h" namespace crypto { // Simplify the interface and reduce includes by abstracting out the internals. class SymmetricKey; class CRYPTO_EXPORT HMAC { … }; } // namespace crypto #endif // CRYPTO_HMAC_H_