summaryrefslogtreecommitdiffstats
path: root/src/core/crypto/key_manager.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-11-14 19:47:23 +0100
committerGitHub <noreply@github.com>2019-11-14 19:47:23 +0100
commit360b0d1b3028a845948d47651bf25492273ce125 (patch)
treead9518767d3c9a820b6a1dc329d2290249321090 /src/core/crypto/key_manager.cpp
parentMerge pull request #3092 from lioncash/util (diff)
parentcore: Migrate off deprecated mbedtls functions (diff)
downloadyuzu-360b0d1b3028a845948d47651bf25492273ce125.tar
yuzu-360b0d1b3028a845948d47651bf25492273ce125.tar.gz
yuzu-360b0d1b3028a845948d47651bf25492273ce125.tar.bz2
yuzu-360b0d1b3028a845948d47651bf25492273ce125.tar.lz
yuzu-360b0d1b3028a845948d47651bf25492273ce125.tar.xz
yuzu-360b0d1b3028a845948d47651bf25492273ce125.tar.zst
yuzu-360b0d1b3028a845948d47651bf25492273ce125.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 12f13b742..487b57053 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -396,7 +396,7 @@ static std::array<u8, target_size> MGF1(const std::array<u8, in_size>& seed) {
while (out.size() < target_size) {
out.resize(out.size() + 0x20);
seed_exp[in_size + 3] = static_cast<u8>(i);
- mbedtls_sha256(seed_exp.data(), seed_exp.size(), out.data() + out.size() - 0x20, 0);
+ mbedtls_sha256_ret(seed_exp.data(), seed_exp.size(), out.data() + out.size() - 0x20, 0);
++i;
}