mirror of
https://github.com/d0k3/SafeB9SInstaller.git
synced 2025-06-26 05:32:45 +00:00
Activate the SigHax FIRM hash check
This commit is contained in:
parent
abc524e5db
commit
61abd4857c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user