mirror of
https://github.com/AuroraWright/SafeA9LHInstaller.git
synced 2025-06-26 05:32:45 +00:00
Spaces and stuff
Makes things more uniform
This commit is contained in:
parent
eaefd3638f
commit
0ede524c31
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -12,4 +12,4 @@
|
||||
extern int pos_y;
|
||||
|
||||
u16 waitInput(void);
|
||||
void shutdown(u32 mode, char *message);
|
||||
void shutdown(u32 mode, const char *message);
|
Loading…
x
Reference in New Issue
Block a user