NRR: Difference between revisions

Roblabla (talk | contribs)
Initial commit (port from https://web.archive.org/web/20180712234431/https://reswitched.tech/software/fileformats/nrr)
 
Liam (talk | contribs)
update structure
Line 8: Line 8:
! Description
! Description
|-
|-
| 0x00
| 0x0
| 4
| 0x4
| “NRR0” magic
| Magic "NRR0"
|-
|-
| 0x04
| 0x4
| 28
| 0xC
| Unknown (0)
| Reserved
|-
| 0x10
| 0x8
| Title ID Mask
|-
| 0x18
| 0x8
| Title ID Pattern
|-
|-
| 0x20
| 0x20
| 8
| 0x10
| Title ID mask?
| Reserved
|-
| 0x28
| 8
| Title ID pattern?
|-
|-
| 0x30
| 0x30
| 256
| 0x100
| Modulus for verifying the second signature
| Modulus for verifying the second signature
|-
|-
| 0x130
| 0x130
| 256
| 0x100
| First signature signed by a Nintendo key, over the above contents
| First signature signed by a Nintendo key, over the above contents
|-
|-
| 0x230
| 0x230
| 256
| 0x100
| Second signature verifiable with the above key, over the rest of the file
| Second signature verifiable with the above key, over the rest of the file
|-
|-
| 0x330
| 0x330
| 8
| 0x8
| Title ID
| Title ID
|-
|-
| 0x338
| 0x338
| 4
| 0x4
| Size
| File Size
|-
|-
| 0x33C
| 0x33C
| 4
| 0x4
| Unknown (0)
| Module Type
|-
|-
| 0x340
| 0x340
| 4
| 0x4
| Hash offset (0x350)
| Hash Offset (Always 0x350)
|-
|-
| 0x344
| 0x344
| 4
| 0x4
| Hash count
| Hash Count
|-
|-
| 0x348
| 0x348
| 8
| 0x8
| Unknown (0)
| Reserved
|-
|-
| 0x350
| 0x350
| 32 * count
| 0x20 * Hash Count
| NRO hashes (SHA-256)  
| NRO hashes (SHA-256)  
|}
|}