Changes

Jump to navigation Jump to search
92 bytes added ,  12:36, 3 June 2020
Line 1,783: Line 1,783:  
Magic Gate Key Manager secure module.
 
Magic Gate Key Manager secure module.
    +
Present on 0.931-3.73. Commands are almost the same on any FW, only KEY_31 varies.
 +
0
 
These commands are used to set keys (as seen on FWs from 0.940 to 3.60) to [[Dmac5|DMAC5]] registers in NS memory. These keys are used in to do encryption stuff with AES-ECB and TripleDES-ECB algorithms through [[Dmac5|DMAC5]].
 
These commands are used to set keys (as seen on FWs from 0.940 to 3.60) to [[Dmac5|DMAC5]] registers in NS memory. These keys are used in to do encryption stuff with AES-ECB and TripleDES-ECB algorithms through [[Dmac5|DMAC5]].
   Line 1,803: Line 1,805:  
<source lang="C">
 
<source lang="C">
 
memset(buffer, 0, 0x20);
 
memset(buffer, 0, 0x20);
memcpy(buffer, KEY_1, 0x10);
+
memcpy(buffer, KEY_31, 0x10);
 
bigmac_memcpy(0xE04E0000 + 0x1F * 0x20, buffer, 0x20);
 
bigmac_memcpy(0xE04E0000 + 0x1F * 0x20, buffer, 0x20);
 
</source>
 
</source>
Line 1,812: Line 1,814:  
memset(buffer, 0, 0x20);
 
memset(buffer, 0, 0x20);
 
memcpy(buffer, pOpenPsId, 0x10);
 
memcpy(buffer, pOpenPsId, 0x10);
memcpy(buffer + 0x10, KEY_2, 0x10);
+
memcpy(buffer + 0x10, KEY_30_SEED, 0x10);
 
bigmac_sha256(buffer, buffer, 0x20);
 
bigmac_sha256(buffer, buffer, 0x20);
 
bigmac_memcpy(0xE04E0000 + 0x1E * 0x20, buffer, 0x20);
 
bigmac_memcpy(0xE04E0000 + 0x1E * 0x20, buffer, 0x20);
5,761

edits

Navigation menu