Thanks @Qyriad ^^
This commit is contained in:
Mikaela Szekely 2018-03-03 18:45:47 -05:00 committed by Aurora
parent 0b41ed04d5
commit 4f54596658

View File

@ -146,11 +146,20 @@ bool verifyPin(u32 pinMode)
initScreens(); initScreens();
swapFramebuffers(true);
drawString(true, 10, 10, COLOR_TITLE, "Enter the PIN using ABXY and the DPad to proceed"); drawString(true, 10, 10, COLOR_TITLE, "Enter the PIN using ABXY and the DPad to proceed");
drawString(true, 10, 10 + SPACING_Y, COLOR_TITLE, "Press START to shutdown, SELECT to clear"); drawString(true, 10, 10 + SPACING_Y, COLOR_TITLE, "Press START to shutdown, SELECT to clear");
drawFormattedString(true, 10, 10 + 3 * SPACING_Y, COLOR_WHITE, "PIN (%u digits): ", lengthBlock[0]); drawFormattedString(true, 10, 10 + 3 * SPACING_Y, COLOR_WHITE, "PIN (%u digits): ", lengthBlock[0]);
bool isBottomSplashValid = getFileSize("splashpin.bin") == SCREEN_BOTTOM_FBSIZE;
if(isBottomSplashValid)
{
isBottomSplashValid = fileRead(fbs[0].bottom, "splashpin.bin", SCREEN_BOTTOM_FBSIZE) == SCREEN_BOTTOM_FBSIZE;
}
else
{
static const char *messageFile = "pinmessage.txt"; static const char *messageFile = "pinmessage.txt";
char message[801]; char message[801];
@ -161,6 +170,8 @@ bool verifyPin(u32 pinMode)
message[messageSize] = 0; message[messageSize] = 0;
drawString(false, 10, 10, COLOR_WHITE, message); drawString(false, 10, 10, COLOR_WHITE, message);
} }
}
swapFramebuffers(false);
//Pad to AES block length with zeroes //Pad to AES block length with zeroes
__attribute__((aligned(4))) u8 enteredPassword[AES_BLOCK_SIZE] = {0}; __attribute__((aligned(4))) u8 enteredPassword[AES_BLOCK_SIZE] = {0};