Title metadata: Difference between revisions
Matyapiro31 (talk | contribs) No edit summary |
No edit summary |
||
| Line 43: | Line 43: | ||
| 0x1DC||0x2DC||2||Title version | | 0x1DC||0x2DC||2||Title version | ||
|- | |- | ||
| 0x1DE||0x2DE||2||Number of contents | | 0x1DE||0x2DE||2||Number of contents (contcount) | ||
|- | |- | ||
| 0x1E0||0x2E0|| | | 0x1E0||0x2E0||2||Boot content | ||
|- | |- | ||
| | | 0x204||0x204||36*64||Content info records | ||
|- | |- | ||
| | | 0xB04||0xC04||48*contcount|| Content chunk records | ||
|} | |||
=== Content info records === | |||
{| class="wikitable" | |||
|- | |- | ||
! Start | |||
! Length | |||
! Description | |||
|- | |- | ||
| | | 0x00 | ||
| 2 | |||
| Content index offset | |||
|- | |- | ||
| | | 0x02 | ||
| 2 | |||
| Content command count | |||
|- | |||
| 0x04 | |||
| 32 | |||
| SHA-256 hash? Commands? | |||
|} | |} | ||
=== Content | === Content chunk records === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| Line 67: | Line 81: | ||
| 0x00 | | 0x00 | ||
| 4 | | 4 | ||
| Content | | Content id | ||
|- | |- | ||
| 0x04 | | 0x04 | ||
| 2 | |||
| Content index | |||
|- | |||
| 0x06 | |||
| 2 | |||
| Content type | |||
|- | |||
| 0x08 | |||
| 8 | |||
| Content size | |||
|- | |||
| 0x10 | |||
| 32 | | 32 | ||
| SHA-256 | | SHA-256 hash | ||
|} | |} | ||
| Line 108: | Line 134: | ||
== Example code application == | == Example code application == | ||
<source lang="c"> | <source lang="c"> | ||
enum sig_type { | enum sig_type { | ||
RSA_2048_SHA256 = 0x00010004, | RSA_2048_SHA256 = 0x00010004, | ||
| Line 119: | Line 140: | ||
RSA_4096_SHA1 = 0x00010000 | RSA_4096_SHA1 = 0x00010000 | ||
}; | }; | ||
// Sorry I removed the example struct because it is wrong. | |||
</source> | </source> | ||