SpotPass: Difference between revisions

No edit summary
Line 28: Line 28:
== Content Container ==
== Content Container ==


All SpotPass content uses this container to encrypt the payload and sign it. The cleartext payload is stored in [[extdata]]. The format of these headers is big-endian.
All SpotPass content uses this container to encrypt the payload and sign it. The cleartext content is stored in [[extdata]]. The format of these headers is big-endian.


=== BOSS Header ===
=== BOSS Header ===
Line 74: Line 74:
|}
|}


Data following the header is encrypted with AES-CTR. The first 12 bytes of the CTR are from offset 0x1C of the header, while the last word of the CTR in big-endian is 0x1. The cleartext data begins with another header. Following that header is the actual content.
Data following the header is encrypted with AES-CTR. The first 12 bytes of the CTR are from offset 0x1C of the header, while the last word of the CTR in big-endian is 0x1. The cleartext data begins with the content header.


=== Content Header ===
=== Content Header ===
Line 101: Line 101:


The hash at offset 0x12 hashes the 0x10-byte data at offset 0x0 followed by a zero u16.
The hash at offset 0x12 hashes the 0x10-byte data at offset 0x0 followed by a zero u16.
=== Unknown Header ===
{| class="wikitable"
|-
! Offset
! Length
!
|-
| 0x0
| 0x15C
| ?
|-
|}
Following this header is the actual content payload, which is stored in a cleartext file under the [[extdata]] /boss directory.


[[Category:Nintendo Software]]
[[Category:Nintendo Software]]