diff --git a/source/crypto.c b/source/crypto.c index c2a4b7f..c8aa339 100755 --- a/source/crypto.c +++ b/source/crypto.c @@ -340,11 +340,11 @@ void generateSector(u8 *keySector){ //Encrypt key sector aes_use_keyslot(0x11); - for(u32 i = 0; i<32; i++) + for(u32 i = 0; i < 32; i++) aes(keySector + (0x10 * i), keySector + (0x10 * i), 1, NULL, AES_ECB_ENCRYPT_MODE, 0); } -//Read and decrypt NAND key sector +//Read and decrypt the NAND key sector void getSector(u8 *keySector){ //Read keysector from NAND sdmmc_nand_readsectors(0x96, 1, keySector); diff --git a/source/utils.c b/source/utils.c index 6335fcf..811d990 100755 --- a/source/utils.c +++ b/source/utils.c @@ -18,14 +18,14 @@ u16 waitInput(void){ for(u32 i = 0x13000; i; i--){ if (key != HID_PAD) break; - if(i==1) pressedkey = 1; + if(i == 1) pressedkey = 1; } - } while (!pressedkey); + } while(!pressedkey); return key; } -void shutdown(u32 mode, char *message){ +void shutdown(u32 mode, const char *message){ if(mode){ pos_y = drawString(message, 10, pos_y + SPACING_VERT, COLOR_RED); drawString("Press any button to shutdown", 10, pos_y, COLOR_WHITE); diff --git a/source/utils.h b/source/utils.h index 280723c..4359ef8 100644 --- a/source/utils.h +++ b/source/utils.h @@ -12,4 +12,4 @@ extern int pos_y; u16 waitInput(void); -void shutdown(u32 mode, char *message); \ No newline at end of file +void shutdown(u32 mode, const char *message); \ No newline at end of file