Changes

Jump to navigation Jump to search
74 bytes added ,  13:50, 27 November 2017
m
Line 161: Line 161:  
Whereas the filesystem data in NAND is encrypted using a unique key for every DSi, the stage2 bootloader is identical on every DSi tested so far. The stage2 bootloader binaries are not encrypted with any console-unique keys.
 
Whereas the filesystem data in NAND is encrypted using a unique key for every DSi, the stage2 bootloader is identical on every DSi tested so far. The stage2 bootloader binaries are not encrypted with any console-unique keys.
   −
Stage1 uses the [[AES_Engine]] to decrypt each ARM9/ARM7 binary, where keyY is from the above signature. The [[AES_Engine]] keyslot used here is the same one used for the shared areas for [[Tad]], therefore the keyX is the same as the one used for that. The following is used for the CTR, where "binblk->binblocksize" is the above binary size aligned to 0x200-bytes:
+
Stage1 uses the [[AES_Engine]] with mode AES-CTR to decrypt each ARM9/ARM7 binary, where keyY is from the above signature. The [[AES_Engine]] keyslot used here is the same one used for the shared areas for [[Tad]], therefore the keyX is the same as the one used for that. The following is used for the CTR, where "binblk->binblocksize" is the above binary size aligned to 0x200-bytes:
    
   unsigned int ctr[4];
 
   unsigned int ctr[4];
Line 167: Line 167:  
    
 
    
 
   ctr[0] = binblk->binblocksize;
 
   ctr[0] = binblk->binblocksize;
   ctr[1] = (unsigned int)(-binblksize);
+
   ctr[1] = (unsigned int)(-binblk->binblocksize);
 
   ctr[2] = ~binblk->binblocksize;
 
   ctr[2] = ~binblk->binblocksize;
   Line 184: Line 184:  
|-
 
|-
 
| "Error: 1-2435-8325" || Invalid signature or partition type in MBR, invalid starting LBA.
 
| "Error: 1-2435-8325" || Invalid signature or partition type in MBR, invalid starting LBA.
 +
|-
 +
| "Error: 2-2435-8325" || Invalid Firmware
 
|-
 
|-
 
| "Error: 3-2435-8325" || DSi Menu integrity checks failed
 
| "Error: 3-2435-8325" || DSi Menu integrity checks failed
 
|-
 
|-
 
|}
 
|}
3

edits

Navigation menu