Changes

Jump to navigation Jump to search
2,673 bytes added ,  18:19, 22 July 2016
Line 1: Line 1:  +
== Old CIA Formats ==
 +
=== 24/06/2010 - CTR_SDK: 0_10 ===
 +
'''CIA Header'''
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
!  START
 +
!  SIZE
 +
!  DESCRIPTION
 +
|-
 +
|  0x00
 +
|  0x04
 +
|  Archive Header Size (Usually = 0x2020 bytes)
 +
|-
 +
|  0x04
 +
|  0x02
 +
|  Type
 +
|-
 +
|  0x06
 +
|  0x02
 +
|  Version
 +
|-
 +
|  0x08   
 +
|  0x04
 +
|  Unused
 +
|-
 +
|  0x0C     
 +
|  0x04
 +
|  Unused
 +
|-
 +
|  0x10   
 +
|  0x04
 +
|  Zero Filled Data (usually 0x200 bytes in length)
 +
|-
 +
|  0x14   
 +
|  0x04
 +
|  Zero Filled Data (usually 0x200 bytes in length)
 +
|-
 +
|  0x18   
 +
|  0x08
 +
|  APP file size
 +
|-
 +
|  0x20
 +
|  0x2000
 +
|  Content Index
 +
|}
 +
 +
The order of the sections in the CIA file:
 +
* Header
 +
* Zero Data*2
 +
* APP file data
 +
 +
The APP data is cleartext. Only one executable supported.
 +
 +
=== 06/07/2010 - CTR_SDK: 0_10_2 ===
 +
 +
'''CIA Header'''
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
!  START
 +
!  SIZE
 +
!  DESCRIPTION
 +
|-
 +
|  0x00
 +
|  0x04
 +
|  Archive Header Size (Usually = 0x2020 bytes)
 +
|-
 +
|  0x04
 +
|  0x02
 +
|  Type
 +
|-
 +
|  0x06
 +
|  0x02
 +
|  Version
 +
|-
 +
|  0x08   
 +
|  0x04
 +
|  Unused
 +
|-
 +
|  0x0C     
 +
|  0x04
 +
|  [[CommonETicket|Ticket]] size
 +
|-
 +
|  0x10   
 +
|  0x04
 +
|  [[TMD]] file size
 +
|-
 +
|  0x14   
 +
|  0x04
 +
|  Unused
 +
|-
 +
|  0x18   
 +
|  0x08
 +
|  APP file size
 +
|-
 +
|  0x20
 +
|  0x2000
 +
| Content Index
 +
|}
 +
 +
The order of the sections in the CIA file:
 +
* Header
 +
* Ticket
 +
* TMD
 +
* APP file data
 +
 +
Very similar to the final CIA version(encryption, TMD, etc), except there is no embedded Certificate Chain.
 +
 +
== Discussion ==
 
Good work Lazymarek9614, Now 3dsexplorer on the svn is 0.73 (you can download it from the beta link) supports cia. --[[User:Elisherer|Elisherer]] 21:34, 10 November 2011 (CET)
 
Good work Lazymarek9614, Now 3dsexplorer on the svn is 0.73 (you can download it from the beta link) supports cia. --[[User:Elisherer|Elisherer]] 21:34, 10 November 2011 (CET)
 
:@Elisherer where is that beta link?--[[User:3dsguy|3dsguy]] 02:39, 11 November 2011 (CET)
 
:@Elisherer where is that beta link?--[[User:3dsguy|3dsguy]] 02:39, 11 November 2011 (CET)
Line 14: Line 124:  
:::::I personaly like a command line tool more, but it's really annoying to have for each format another tool. Shall I create a new page for the certs and tickets?--[[User:Lazymarek9614|Lazymarek9614]] 15:06, 13 November 2011 (CET)
 
:::::I personaly like a command line tool more, but it's really annoying to have for each format another tool. Shall I create a new page for the certs and tickets?--[[User:Lazymarek9614|Lazymarek9614]] 15:06, 13 November 2011 (CET)
 
::::::The format of the certs/tickets seem to be the same as before,(besides the new signature types already described on the TMD page) not really necessary to create pages for those.(Any info on what cert is used to sign what should be on a /sys/cert.sys page or so later IMO) [[User:Elisherer|Elisherer]], you're re-inventing the wheel aka re-implementing CXI/CIA code which ctrtool had for months, which is a waste of time IMO. --[[User:Yellows8|Yellows8]] 19:24, 13 November 2011 (CET)
 
::::::The format of the certs/tickets seem to be the same as before,(besides the new signature types already described on the TMD page) not really necessary to create pages for those.(Any info on what cert is used to sign what should be on a /sys/cert.sys page or so later IMO) [[User:Elisherer|Elisherer]], you're re-inventing the wheel aka re-implementing CXI/CIA code which ctrtool had for months, which is a waste of time IMO. --[[User:Yellows8|Yellows8]] 19:24, 13 November 2011 (CET)
:::::::[[User:Yellows8|Yellows8]], I didn't write any new code for the CXI/CCI/TMD/CIA opening, I just copied it from the ctrtool (as I mentioned when I just written the app). The rest (which is the SAVE flash) became the prime goal of the app and with it I discovered a lot of new information. I try implementing most of the file structures we know so it would be more accessible to everyone (Hoping it would help solving more mysteries). I know that now it's not clear why 3dsexplorer opens these sort of files but with time more information will come and it will grow to extract more important information. I hope you understand. --[[User:Elisherer|Elisherer]] 20:27, 13 November 2011 (CET)
+
:::::::[[User:Yellows8|Yellows8]], I didn't write any new code for the CXI/CCI/TMD/CIA opening, I just copied it from the ctrtool (as I mentioned when I just written the app). The rest (which is the SAVE flash) became the prime goal of the app and with it I discovered a lot of new information. I try implementing most of the file structures we know so it would be more accessible to everyone (Hoping it would help solving more mysteries). I know that now it's not clear why 3dsexplorer opens these sort of file--[[User:Elisherer|Elisherer]] 00:11, 3 February 2012 (CET)s but with time more information will come and it will grow to extract more important information. I hope you understand. --[[User:Elisherer|Elisherer]] 20:27, 13 November 2011 (CET)
 
::::::Sorry guys, this discussion doesn't really has anything to do with the CIA format. Please choose another page for this or stop it now. @ [[User:Yellows8|Yellows8]]: I think it's not important to create a new page for it too, only some links to the TMD format and wiibrew wiki are necessary.--[[User:Lazymarek9614|Lazymarek9614]] 20:44, 13 November 2011 (CET)
 
::::::Sorry guys, this discussion doesn't really has anything to do with the CIA format. Please choose another page for this or stop it now. @ [[User:Yellows8|Yellows8]]: I think it's not important to create a new page for it too, only some links to the TMD format and wiibrew wiki are necessary.--[[User:Lazymarek9614|Lazymarek9614]] 20:44, 13 November 2011 (CET)
 
:::::::Other than that TMD code, that CXI/CIA code looks nothing like the ctrtool code to me - but whatever. --[[User:Yellows8|Yellows8]] 22:07, 13 November 2011 (CET)
 
:::::::Other than that TMD code, that CXI/CIA code looks nothing like the ctrtool code to me - but whatever. --[[User:Yellows8|Yellows8]] 22:07, 13 November 2011 (CET)
Line 23: Line 133:  
[[User:Jl12|Jl12]]
 
[[User:Jl12|Jl12]]
 
: I prefer having a forum running on the 3dbrew host and managed by the 3dbrew administrators. The forum link above is fine for now as a temporary measure. --[[User:Neimod|Neimod]] 04:48, 20 November 2011 (CET)
 
: I prefer having a forum running on the 3dbrew host and managed by the 3dbrew administrators. The forum link above is fine for now as a temporary measure. --[[User:Neimod|Neimod]] 04:48, 20 November 2011 (CET)
 +
 +
Is there any reason it has to be on the 3dbrew host? If it's an issue of forum management I can just move your account(s) to the administrator group. Nobody's forced to use it, of course. [[User:Jl12|Jl12]]
 +
 +
I agree with Neimod.--Matyapiro31 11:56, 20 November 2011 (CET)
 +
 +
 +
The link to [[User:Jl12|Jl12]]'s CIA example is broken (probably since the FBI took down MegaUpload). Could someone re-upload it somewhere else? Thanks! [[User:CHR15x94|CHR15x94]] 23:41, 2 February 2012 (CET)
 +
:Download it contents [http://sherer.co.il/3ds/cia/Sample%20Cia/ here]--[[User:Elisherer|Elisherer]] 00:11, 3 February 2012 (CET)
 +
 +
== Content Index? ==
 +
 +
What on earth is the "Content Index"? To me it sounds critical to understanding the contents chunk.--[[User:Henke37|Henke37]] ([[User talk:Henke37|talk]]) 17:39, 22 July 2016 (CEST)
 +
:It's a number that identifies an NCCH to be installed by that CIA, equivalent to the [[NCSD#Overview|partition number]] of a CCI: indeed, 0=main, 1=manual, 2=remote app are used in exactly the same way. The number of mazimum possible partitions is however much higher in CIAs! --[[User:Ryccardo|Ryccardo]] ([[User talk:Ryccardo|talk]]) 18:19, 22 July 2016 (CEST)
149

edits

Navigation menu