HMAC.h 359 B

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