core: Migrate off deprecated mbedtls functions

These functions are marked for deprecation and it's recommended that the
*_ret variants be used instead.
This commit is contained in:
Lioncash 2019-11-12 08:37:58 -05:00
parent 8714d40a77
commit e0c46e6879
7 changed files with 12 additions and 12 deletions

View file

@ -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;
}