| 1 | // Copyright 2023 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "Common/CommonTypes.h" |
| 7 | |
| 8 | #include <span> |
| 9 | |
| 10 | namespace Common::HMAC |
| 11 | { |
| 12 | // HMAC with the SHA1 message digest. Excepted output length is 20 bytes. |
| 13 | bool HMACWithSHA1(std::span<const u8> key, std::span<const u8> msg, u8* out); |
| 14 | } // namespace Common::HMAC |