DISA and DIFF: Difference between revisions

Wwylele (talk | contribs)
Correct CMAC for cart save
TimmSkiller (talk | contribs)
 
(5 intermediate revisions by 2 users not shown)
Line 103: Line 103:
| 0x20
| 0x20
| SHA-256 of the following 0x108-byte block
| SHA-256 of the following 0x108-byte block
|-
{| class="wikitable" border="1"
|
! Offset
 
! Length
|
! Description
 
|
 
|-
|-
| 0x00
| 0x00
Line 118: Line 115:
| 0x100
| 0x100
| Copy of the DISA header
| Copy of the DISA header
|}
|}
|}


Line 140: Line 138:
| 0x20
| 0x20
| SHA-256 of the following 0x108-byte block
| SHA-256 of the following 0x108-byte block
|-
{| class="wikitable" border="1"
|
! Offset
 
! Length
|
! Description
 
|
 
|-
|-
| 0x00
| 0x00
Line 156: Line 151:
| Copy of the DISA header
| Copy of the DISA header
|}
|}
|}


=== CTR-SYS0 ===
=== CTR-SYS0 ===
Line 241: Line 238:
=== DISA header ===
=== DISA header ===


==== SaveDataSecureValue ====
{| class="wikitable" border="1"
|-
! Offset !! Length !! Description
|-
| 0x0 || 0x4 || u32, [[Anti_Savegame_Restore|Secure Value]] slot
|-
| 0x4 || 0x8 || u64, [[Anti_Savegame_Restore|Secure Value]]
|}
==== DISA Header structure ====
{| class="wikitable" border="1"
{| class="wikitable" border="1"
! Offset
! Offset
Line 311: Line 319:
|-
|-
| 0x69
| 0x69
| 3
| 1
| Number of used [[Anti_Savegame_Restore|Save Data Secure Value]] entries in the DISA header
|-
| 0x6A
| 2
| Padding
| Padding
|-
|-
Line 319: Line 331:
|-
|-
| 0x8C
| 0x8C
| 0x74
| 0x30 (0xC * 0x4)
| [[DISA_and_DIFF#SaveDataSecureValue|Save Data Secure Value]] entries (4)
|-
| 0xBC
| 0x8
| Unused randomly generated u64 value.
|-
| 0xC4
| 0x3C
| Unused
| Unused
|}
|}
Line 691: Line 711:
== Summary diagram ==
== Summary diagram ==


 
[[File:Disa-diff.png]]
external link: https://i.imgur.com/BjwShJZ.png
* Please move this into 3dbrew when file uploading is fixed.