sha_util.h 445 B

1234567891011121314151617181920
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "common/assert.h"
  6. #include "core/file_sys/vfs.h"
  7. #include "key_manager.h"
  8. #include "mbedtls/cipher.h"
  9. namespace Crypto {
  10. typedef std::array<u8, 0x20> SHA256Hash;
  11. inline SHA256Hash operator"" _HASH(const char* data, size_t len) {
  12. if (len != 0x40)
  13. return {};
  14. }
  15. } // namespace Crypto