diff --git a/source/exceptions.c b/source/exceptions.c index a52bd44..ff295f8 100644 --- a/source/exceptions.c +++ b/source/exceptions.c @@ -207,4 +207,4 @@ void detectAndProcessExceptionDumps(void) waitInput(); mcuPowerOff(); } -} +} \ No newline at end of file diff --git a/source/pin.c b/source/pin.c index 05cda07..3b56a2f 100644 --- a/source/pin.c +++ b/source/pin.c @@ -56,7 +56,7 @@ void newPin(bool allowSkipping, u32 pinMode) drawCharacter('0' + length, true, 10 + 5 * SPACING_X, 10 + 2 * SPACING_Y, COLOR_WHITE); //Pad to AES block length with zeroes - u8 __attribute__((aligned(4))) enteredPassword[AES_BLOCK_SIZE] = {0}; + __attribute__((aligned(4))) u8 enteredPassword[AES_BLOCK_SIZE] = {0}; u8 cnt = 0; u32 charDrawPos = 16 * SPACING_X; @@ -90,8 +90,8 @@ void newPin(bool allowSkipping, u32 pinMode) pin.formatVersionMajor = PIN_VERSIONMAJOR; pin.formatVersionMinor = PIN_VERSIONMINOR; - u8 __attribute__((aligned(4))) tmp[SHA_256_HASH_SIZE]; - u8 __attribute__((aligned(4))) lengthBlock[AES_BLOCK_SIZE] = {0}; + __attribute__((aligned(4))) u8 tmp[SHA_256_HASH_SIZE], + lengthBlock[AES_BLOCK_SIZE] = {0}; lengthBlock[0] = length; computePinHash(tmp, lengthBlock); @@ -114,8 +114,8 @@ bool verifyPin(u32 pinMode) pin.formatVersionMinor != PIN_VERSIONMINOR) return false; - u8 __attribute__((aligned(4))) tmp[SHA_256_HASH_SIZE]; - u8 __attribute__((aligned(4))) lengthBlock[AES_BLOCK_SIZE] = {0}; + __attribute__((aligned(4))) u8 tmp[SHA_256_HASH_SIZE], + lengthBlock[AES_BLOCK_SIZE] = {0}; lengthBlock[0] = 4 + 2 * (pinMode - 1); computePinHash(tmp, lengthBlock); @@ -126,7 +126,7 @@ bool verifyPin(u32 pinMode) initScreens(); //Pad to AES block length with zeroes - u8 __attribute__((aligned(4))) enteredPassword[AES_BLOCK_SIZE] = {0}; + __attribute__((aligned(4))) u8 enteredPassword[AES_BLOCK_SIZE] = {0}; bool unlock = false; u8 cnt = 0;