sha_util.h 429 B

12345678910111213141516171819
  1. // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "common/assert.h"
  5. #include "core/file_sys/vfs.h"
  6. #include "key_manager.h"
  7. #include "mbedtls/cipher.h"
  8. namespace Crypto {
  9. typedef std::array<u8, 0x20> SHA256Hash;
  10. inline SHA256Hash operator"" _HASH(const char* data, size_t len) {
  11. if (len != 0x40)
  12. return {};
  13. }
  14. } // namespace Crypto