diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-19 20:23:11 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-19 20:23:13 +0200 |
commit | 2e5f0e5024fac21808de12fd9008feb85dc2f02c (patch) | |
tree | 38c05b6396c7540ff9047258ab9257fed1480f4b /src | |
parent | xts_archive: Make AsNCA() return a std::unique_ptr instead of a std::shared_ptr (diff) | |
download | yuzu-2e5f0e5024fac21808de12fd9008feb85dc2f02c.tar yuzu-2e5f0e5024fac21808de12fd9008feb85dc2f02c.tar.gz yuzu-2e5f0e5024fac21808de12fd9008feb85dc2f02c.tar.bz2 yuzu-2e5f0e5024fac21808de12fd9008feb85dc2f02c.tar.lz yuzu-2e5f0e5024fac21808de12fd9008feb85dc2f02c.tar.xz yuzu-2e5f0e5024fac21808de12fd9008feb85dc2f02c.tar.zst yuzu-2e5f0e5024fac21808de12fd9008feb85dc2f02c.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/file_sys/xts_archive.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/file_sys/xts_archive.cpp b/src/core/file_sys/xts_archive.cpp index 6935d2fa2..e937d1403 100644 --- a/src/core/file_sys/xts_archive.cpp +++ b/src/core/file_sys/xts_archive.cpp @@ -30,9 +30,6 @@ static bool CalculateHMAC256(Destination* out, const SourceKey* key, std::size_t mbedtls_md_context_t context; mbedtls_md_init(&context); - const auto key_f = reinterpret_cast<const u8*>(key); - const std::vector<u8> key_v(key_f, key_f + key_length); - if (mbedtls_md_setup(&context, mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), 1) || mbedtls_md_hmac_starts(&context, reinterpret_cast<const u8*>(key), key_length) || mbedtls_md_hmac_update(&context, reinterpret_cast<const u8*>(data), data_length) || |