summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-10-27 23:54:48 -0400
committerGravatar GitHub2018-10-27 23:54:48 -0400
commita9d60c6103bd67881c0e2c92528da0897a5e1f16 (patch)
tree2c50bf6f80a1737446ba2e576e3e06a1213e52a8 /src
parentMerge pull request #1597 from lioncash/error (diff)
parentkey_manager: Use isxdigit instead of isdigit when reading key file (diff)
downloadyuzu-a9d60c6103bd67881c0e2c92528da0897a5e1f16.tar.gz
yuzu-a9d60c6103bd67881c0e2c92528da0897a5e1f16.tar.xz
yuzu-a9d60c6103bd67881c0e2c92528da0897a5e1f16.zip
Merge pull request #1602 from DarkLordZach/key-derivation-isxdigit
key_manager: Use isxdigit instead of isdigit when reading key file
Diffstat (limited to 'src')
-rw-r--r--src/core/crypto/key_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp
index fefc3c747..89ae79eb3 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -395,7 +395,7 @@ static bool ValidCryptoRevisionString(std::string_view base, size_t begin, size_
395 if (base.size() < begin + length) 395 if (base.size() < begin + length)
396 return false; 396 return false;
397 return std::all_of(base.begin() + begin, base.begin() + begin + length, 397 return std::all_of(base.begin() + begin, base.begin() + begin + length,
398 [](u8 c) { return std::isdigit(c); }); 398 [](u8 c) { return std::isxdigit(c); });
399} 399}
400 400
401void KeyManager::LoadFromFile(const std::string& filename, bool is_title_keys) { 401void KeyManager::LoadFromFile(const std::string& filename, bool is_title_keys) {