Changes

794 bytes added ,  07:10, 8 December 2009
no edit summary
Line 277: Line 277:  
|  0x328
 
|  0x328
 
|  20
 
|  20
|  Digest Block Hashtable SHA1 HMAC hash
+
|  Digest master SHA1 HMAC hash
 
|-
 
|-
 
|  0x33C
 
|  0x33C
Line 312: Line 312:  
|}
 
|}
   −
The first 0xE00 bytes of the SRL header is signed with an 1024-bit RSA signature.
+
The first 0xE00 bytes of the NDS header is signed with an 1024-bit RSA signature.
 +
 
 +
= Digests =
 +
The NDS format has been extended with a hash tree to verify the entire contents of an NDS ROM. The NDS ROM is divided into sectors, and each sector will be hashed and stored in the digest sector hashtable. The size of a sector is defined in the header aswell. Furthermore, the sector hashtable is partitioned and hashed again to form block hashes. This block hashtable is hashed again into a single hash called the digest master hash. These hashtables can be used to verify that the sectors of a NDS ROM have not been tampered with, since the integrity of a sector hash can be verified by a block hash, which in turn can be verified by the master hash. And this hash is part of the header, which is signed with RSA.
 +
 
 +
The sector hashtable reaches over the NTR and TWL regions, respectively.
143

edits