mirror of
https://github.com/d0k3/SafeB9SInstaller.git
synced 2025-06-26 13:42:45 +00:00
Less strict check for valid FIRM crypto
... only one partition has to match
This commit is contained in:
parent
1f55ec9ca3
commit
57afda82ad
@ -196,11 +196,11 @@ bool CheckFirmCrypto(void)
|
|||||||
u8 buffer[0x200];
|
u8 buffer[0x200];
|
||||||
for (u32 i = 0; i < sizeof(sectors) / sizeof(u32); i++) {
|
for (u32 i = 0; i < sizeof(sectors) / sizeof(u32); i++) {
|
||||||
ReadNandSectors(buffer, sectors[i], 1, 0x06);
|
ReadNandSectors(buffer, sectors[i], 1, 0x06);
|
||||||
if (memcmp(buffer, magic, sizeof(magic)) != 0) return false;
|
if (memcmp(buffer, magic, sizeof(magic)) == 0) return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// success if we arrive here
|
// failed if we arrive here
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CryptNand(void* buffer, u32 sector, u32 count, u32 keyslot)
|
void CryptNand(void* buffer, u32 sector, u32 count, u32 keyslot)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user