summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Crypto/HMAC.h
blob: e870a2c98e075834d7d7a421fa6284d0086918d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2023 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "Common/CommonTypes.h"

#include <span>

namespace Common::HMAC
{
// HMAC with the SHA1 message digest. Excepted output length is 20 bytes.
bool HMACWithSHA1(std::span<const u8> key, std::span<const u8> msg, u8* out);
}  // namespace Common::HMAC