Browse Source
Merge pull request #3104 from lioncash/xts
xts_archive: Remove redundant std::string constructor
pull/15/merge
Rodrigo Locatti
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
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; |
|
|
|
} |
|
|
|
|
|
|
|
|