Activate the SigHax FIRM hash check

This commit is contained in:
d0k3 2017-02-28 19:20:43 +01:00
parent abc524e5db
commit 61abd4857c

View File

@ -30,7 +30,7 @@ const u8 sectorHash[0x20] = {
0xBA, 0xB2, 0x4B, 0x4E, 0x5F, 0x65, 0xC9, 0x81, 0xCD, 0x7B, 0xE6, 0xF4, 0x38, 0xE6, 0xD9, 0xD3
};
// standard sighax signature hash - still unknown
// standard sighax signature hash - still unknown (= missing puzzle piece)
const u8 sighaxHash[0x20] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
@ -100,7 +100,6 @@ u32 ValidateSector(void* sector) {
}
u32 CheckFirmSigHax(void* firm) {
return 0; // not like we can check that already (!!!)
FirmHeader* header = (FirmHeader*) firm;
return (sha_cmp(sighaxHash, header->signature, 0x100, SHA256_MODE) == 0) ? 0 : 1;
}