diff options
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
| -rw-r--r-- | src/core/crypto/key_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp index 222fc95ba..4401f9f81 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) { | |||
| 396 | while (out.size() < target_size) { | 396 | while (out.size() < target_size) { |
| 397 | out.resize(out.size() + 0x20); | 397 | out.resize(out.size() + 0x20); |
| 398 | seed_exp[in_size + 3] = static_cast<u8>(i); | 398 | seed_exp[in_size + 3] = static_cast<u8>(i); |
| 399 | mbedtls_sha256(seed_exp.data(), seed_exp.size(), out.data() + out.size() - 0x20, 0); | 399 | mbedtls_sha256_ret(seed_exp.data(), seed_exp.size(), out.data() + out.size() - 0x20, 0); |
| 400 | ++i; | 400 | ++i; |
| 401 | } | 401 | } |
| 402 | 402 | ||