fusee_cpp: fix mariko mtc (mariko now gets as far as erista)

This commit is contained in:
Michael Scire 2021-09-03 12:43:07 -07:00 committed by SciresM
parent 5950ff5b5e
commit 968ced677e
5 changed files with 595 additions and 895 deletions

View file

@ -208,8 +208,7 @@ namespace ams::nxboot {
if (soc_type == fuse::SocType_Mariko) {
package1 += 0x170;
const u8 iv[0x10] = {};
se::DecryptAes128Cbc(package1 + 0x20, 0x40000 - (0x20 + 0x170), pkg1::AesKeySlot_MarikoBek, package1 + 0x20, 0x40000 - (0x20 + 0x170), iv, sizeof(iv));
se::DecryptAes128Cbc(package1 + 0x20, 0x40000 - (0x20 + 0x170), pkg1::AesKeySlot_MarikoBek, package1 + 0x20, 0x40000 - (0x20 + 0x170), package1 + 0x10, se::AesBlockSize);
hw::InvalidateDataCache(package1 + 0x20, 0x40000 - (0x20 + 0x170));