Line 1: |
Line 1: |
| [[Category:File formats]] | | [[Category:File formats]] |
| == Overview == | | == Overview == |
− | CIA stands for '''C'''TR '''I'''mportable '''A'''rchive. This format allows the installation titles to the 3DS. CIA files and titles on [[Title list|Nintendo's CDN]] contain identical data. As a consequence, valid CIA files can be generated from CDN content. This also means CIA files can contain anything, titles on Nintendo's CDN can contain. | + | CIA stands for '''C'''TR '''I'''mportable '''A'''rchive. This format allows the installation titles to the 3DS. CIA files and titles on [[Title list|Nintendo's CDN]] contain identical data. As a consequence, valid CIA files can be generated from CDN content. This also means CIA files can contain anything that titles on Nintendo's CDN can contain. |
| | | |
| Under normal circumstances CIA files are used where downloading a title is impractical or not possible. Such as distributing a [[Download Play]] child, or installing forced Gamecard updates. Those CIA(s) are stored by the titles in question, in an auxiliary [[NCCH#CFA|CFA]] file. | | Under normal circumstances CIA files are used where downloading a title is impractical or not possible. Such as distributing a [[Download Play]] child, or installing forced Gamecard updates. Those CIA(s) are stored by the titles in question, in an auxiliary [[NCCH#CFA|CFA]] file. |
Line 45: |
Line 45: |
| | 0x0C | | | 0x0C |
| | 0x04 | | | 0x04 |
− | | [[CommonETicket|Ticket]] size | + | | [[Ticket]] size |
| |- | | |- |
| | 0x10 | | | 0x10 |
Line 60: |
Line 60: |
| |- | | |- |
| | 0x20 | | | 0x20 |
− | | 0x01 | + | | 0x2000 |
− | | Magic? Must be = 0x80 | + | | Content Index |
− | |-
| |
− | | 0x21
| |
− | | 0x1FFF
| |
− | | Magic? Must be Zero Filled
| |
| |} | | |} |
| | | |
Line 79: |
Line 75: |
| === Certificate Chain === | | === Certificate Chain === |
| | | |
− | There are three Certificates in this Chain: | + | There are three [[Certificates|certificates]] in this chain: |
| | | |
| {| class="wikitable" border="1" | | {| class="wikitable" border="1" |
Line 125: |
Line 121: |
| |- | | |- |
| | 0x180 | | | 0x180 |
− | | 0x280 | + | | 0x180 |
− | | Reserved/Unused | + | | Reserved |
| + | |- |
| + | | 0x300 |
| + | | 0x4 |
| + | | Core Version |
| + | |- |
| + | | 0x304 |
| + | | 0xFC |
| + | | Reserved |
| |- | | |- |
| | 0x400 | | | 0x400 |
Line 138: |
Line 142: |
| | | |
| * [https://github.com/3dshax/ctr/tree/master/ctrtool ctrtool] - Reading/Extraction of CIA files. This can only decrypt the title-key for development CIAs, since retail CIAs use the [[AES]] hardware key-scrambler for the common-key keyslot. | | * [https://github.com/3dshax/ctr/tree/master/ctrtool ctrtool] - Reading/Extraction of CIA files. This can only decrypt the title-key for development CIAs, since retail CIAs use the [[AES]] hardware key-scrambler for the common-key keyslot. |
| + | |
| + | * [https://github.com/ps3hen/ctr_toolkit/tree/master/make_cia make_cia] - Generating CIA files. Requires CommonKey and ticket/TMD RSA-2048 private exponents. |
| | | |
| * [https://github.com/ps3hen/ctr_toolkit/tree/master/make_cdn_cia make_cdn_cia] - (CMD)(Windows/Linux) Generates CIA files from CDN Content | | * [https://github.com/ps3hen/ctr_toolkit/tree/master/make_cdn_cia make_cdn_cia] - (CMD)(Windows/Linux) Generates CIA files from CDN Content |