From 389a16944395b75c5012780bf2f374418a3d119f Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 3 Aug 2016 20:49:10 +0200 Subject: [PATCH] pin.c cleanup --- source/pin.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/pin.c b/source/pin.c index c7f3d50..7920708 100644 --- a/source/pin.c +++ b/source/pin.c @@ -43,7 +43,6 @@ bool readPin(PINData *out) else if(memcmp(out->magic, "PINF", 4) != 0) return false; computePINHash(tmp, zeroes, 1); - fileWrite(tmp, "/luma/testhash.bin", 32); return memcmp(out->testHash, tmp, 32) == 0; //test vector verification (SD card has (or hasn't) been used on another console) } @@ -61,14 +60,14 @@ PINData newPin(void) { clearScreens(); - drawString("Enter your NEW PIN (4 keys): ", 10, 10, COLOR_WHITE); + drawString("Enter your NEW PIN: ", 10, 10, COLOR_WHITE); u32 pressed = 0; // Set the default value as 0x00 so we can check if there are any unentered characters. u8 __attribute__((aligned(4))) enteredPassword[16 * ((PIN_LENGTH + 15) / 16)] = {0}; // pad to AES block length - int charDrawPos = 29 * SPACING_X; + int charDrawPos = 20 * SPACING_X; int cnt = 0; while(true)