Line 1:
Line 1:
−
'''Title metadata''', or '''TMD''' for short, is a format used to store information about a title (DSiWare, etc.) and all its installed contents, including which contents they consist of and their SHA1 hashes. The format between Wii and DSi Title metadata ''appears'' to be identical.
+
'''Title metadata''', or '''TMD''' for short, is a format used to store information about a title ([[DSiWare]], etc.) and all its installed contents, including which contents they consist of and their {{Wikipedia|SHA-1}} hashes. The format between Wii and DSi Title metadata ''appears'' to be identical; this includes {{Wikipedia|endianness}}, so byteswaps are often needed on the DSi.
Many operations are done in terms of 64-byte blocks, which means you will often see padding out to the nearest 64-byte boundary at the end of a field.
Many operations are done in terms of 64-byte blocks, which means you will often see padding out to the nearest 64-byte boundary at the end of a field.
−
Example of a Nintendo DSi TMD : http://nus.cdn.t.shop.nintendowifi.net/ccs/download/0003000f484e4c4a/tmd ("HNLJ", or Japanese [[Version Data]].)
+
Example of a Nintendo DSi TMD: http://nus.cdn.t.shop.nintendowifi.net/ccs/download/0003000f484e4c4a/tmd ("HNLJ", or Japanese [[Version Data]].)
+
+
The certificate chain at the end of the file seems to always/usually have a size in bytes of 1,792 and a {{Wikipedia|SHA-256}} of <code>03CE2468F00D1AAEA52D7193A2312B0FE87ECE72D43381C3B6BD4C57E700CDD7</code>.
== Structure ==
== Structure ==
Line 45:
Line 47:
| 0x183
| 0x183
| 1
| 1
−
| Padding modulo 64
+
| Padding modulo 4
|-
|-
| 0x184
| 0x184
| 8
| 8
−
| System Version
+
| System Version; probably always 0
|-
|-
| 0x18C
| 0x18C