summaryrefslogtreecommitdiffstats
path: root/src/core/crypto/key_manager.cpp
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-10-13 21:20:44 +0200
committerGitHub <noreply@github.com>2020-10-13 21:20:44 +0200
commitc5b3c8d06bcfa343b2cecbfc60b3530b306ebe88 (patch)
tree9565ff464bbb9e5a0aa66e6e310098314e88d019 /src/core/crypto/key_manager.cpp
parentMerge pull request #3929 from FearlessTobi/ticket-keys (diff)
parentcore/CMakeLists: Make some warnings errors (diff)
downloadyuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar
yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.gz
yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.bz2
yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.lz
yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.xz
yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.zst
yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.zip
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
-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 65d246050..da15f764a 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -411,7 +411,7 @@ Loader::ResultStatus DeriveSDKeys(std::array<Key256, 2>& sd_keys, KeyManager& ke
// Combine sources and seed
for (auto& source : sd_key_sources) {
for (std::size_t i = 0; i < source.size(); ++i) {
- source[i] ^= sd_seed[i & 0xF];
+ source[i] = static_cast<u8>(source[i] ^ sd_seed[i & 0xF]);
}
}