summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-11-13 16:02:08 +0100
committerLioncash <mathew1800@gmail.com>2019-11-13 16:02:10 +0100
commit03b73aa5751cab55de1f470cb9fefba6b820ace3 (patch)
treedfe70f93db8a3809ff056059740b4d970515407a
parentMerge pull request #3085 from bunnei/web-token-b64 (diff)
downloadyuzu-03b73aa5751cab55de1f470cb9fefba6b820ace3.tar
yuzu-03b73aa5751cab55de1f470cb9fefba6b820ace3.tar.gz
yuzu-03b73aa5751cab55de1f470cb9fefba6b820ace3.tar.bz2
yuzu-03b73aa5751cab55de1f470cb9fefba6b820ace3.tar.lz
yuzu-03b73aa5751cab55de1f470cb9fefba6b820ace3.tar.xz
yuzu-03b73aa5751cab55de1f470cb9fefba6b820ace3.tar.zst
yuzu-03b73aa5751cab55de1f470cb9fefba6b820ace3.zip
-rw-r--r--src/core/file_sys/xts_archive.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/file_sys/xts_archive.cpp b/src/core/file_sys/xts_archive.cpp
index 4bc5cb2ee..f5f8b91c9 100644
--- a/src/core/file_sys/xts_archive.cpp
+++ b/src/core/file_sys/xts_archive.cpp
@@ -93,8 +93,7 @@ Loader::ResultStatus NAX::Parse(std::string_view path) {
std::size_t i = 0;
for (; i < sd_keys.size(); ++i) {
std::array<Core::Crypto::Key128, 2> nax_keys{};
- if (!CalculateHMAC256(nax_keys.data(), sd_keys[i].data(), 0x10, std::string(path).c_str(),
- path.size())) {
+ if (!CalculateHMAC256(nax_keys.data(), sd_keys[i].data(), 0x10, path.data(), path.size())) {
return Loader::ResultStatus::ErrorNAXKeyHMACFailed;
}