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 CTR from the header is random per file, and an unique random CTR is used each time the content is updated. The cleartext data begins with the content header.
+
Data following the BOSS 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 CTR from the header is random per file, and an unique random CTR is used each time the content is updated. The cleartext data begins with the content header.
=== Content Header ===
=== Content Header ===
Line 85:
Line 85:
| 0x0
| 0x0
| 0x10
| 0x10
−
| All-zero except the first byte which is 0x80
+
| All-zero except the first byte which is 0x80?
|-
|-
| 0x10
| 0x10
Line 110:
Line 110:
|-
|-
| 0x0
| 0x0
−
| 0x15C
+
| 0x8
+
| ProgramID
+
|-
+
| 0x8
+
| 0x14
| ?
| ?
|-
|-
|}
|}
−
Following this header is the actual content payload, which is stored in a cleartext file under the [[extdata]] /boss directory.
+
Following this header is the actual content payload. The data starting at the beginning of this header is written to a cleartext file under the [[extdata]] /boss directory.