Forgot this

This commit is contained in:
Aurora 2016-09-04 00:55:20 +02:00
parent 201fe05a06
commit 97ae8d2d44

View File

@ -122,7 +122,7 @@ bool verifyPin(void)
computePinHash(tmp, zeroes); computePinHash(tmp, zeroes);
//Test vector verification (SD card has, or hasn't been used on another console) //Test vector verification (SD card has, or hasn't been used on another console)
if(memcmp(pin.testHash, tmp, 32) != 0) return false; if(memcmp(pin.testHash, tmp, sizeof(tmp)) != 0) return false;
//Pad to AES block length with zeroes //Pad to AES block length with zeroes
u8 __attribute__((aligned(4))) enteredPassword[0x10] = {0}; u8 __attribute__((aligned(4))) enteredPassword[0x10] = {0};