From 61abd4857cb8b91c0b8cad978be51502f33c99bf Mon Sep 17 00:00:00 2001 From: d0k3 Date: Tue, 28 Feb 2017 19:20:43 +0100 Subject: [PATCH] Activate the SigHax FIRM hash check --- source/safety/validator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/safety/validator.c b/source/safety/validator.c index c108502..8aac2ec 100644 --- a/source/safety/validator.c +++ b/source/safety/validator.c @@ -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; }