- 2Format
- 3ds To Cia Converter V4.1 Could Not Read Exheader File
- 3ds To Cia Converter Could Not Read Exheader Files
Overview[edit]
- Go Here for UPDATED VideoHow To Extract & Rebuild 3DS Games, Also Learn about Legit cias & Non Legit cias Herehttps://youtu.
- 管理人:Jackman 名前:Jackman 担当:管理人 趣味:ネタ収集 登場人物・・・ 名前:アザズゥー 担当:ツッコミ.
- 3ds to CIA converter this tool. It’s extremely simple as well as does not use Python or.NET Structure or any other programs and also scripts, just my very own code in a solitary exe file. It’s extremely simple as well as does not use Python or.NET Structure or any other programs and also scripts, just my very own code in a solitary exe file.
Here is new CIA converter-CIAKonPack, which will be more easier to convert 3ds ROM file to cia file with Gateway 3ds.We will introduce the feature, system requirement and the tutorial of this new tool.CIAKonPack Features: 1. Only decryption exheader to complete the CIA conversion, xorpad of exheader is only 1M, eliminating the lengthy decryption time in 3ds.
CIA stands for CTR Importable Archive. This format allows the installation of titles to the 3DS. CIA files and titles on 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 CFA file.
Development Units, are capable of manually installing CIA files via the Dev Menu.
Format[edit]
This is the current version of the CIA format, it was finalised in late 2010. (Older versions of the CIA format can be viewed on the Talk page)
The CIA format has a similar structure to the WAD format.
The file is represented in little-endian.
The data is aligned in 64 byte blocks (if a content ends at the middle of the block, the next content will begin from a new block).
CIA Header[edit]
START | SIZE | DESCRIPTION |
---|---|---|
0x00 | 0x04 | Archive Header Size (Usually = 0x2020 bytes) |
0x04 | 0x02 | Type |
0x06 | 0x02 | Version |
0x08 | 0x04 | Certificate chain size |
0x0C | 0x04 | Ticket size |
0x10 | 0x04 | TMD file size |
0x14 | 0x04 | Meta size (0 if no Meta data is present) |
0x18 | 0x08 | Content size |
0x20 | 0x2000 | Content Index |
The order of the sections in the CIA file:
- certificate chain
- Ticket
- TMD file data
- Content file data
- Meta file data (Not a necessary component)
The contents (NCCH/SRL) are encrypted using 128-bit AES-CBC. The encryption uses the decrypted titlekey from the ticket, and the content index from the TMD padded with zeros as the IV.
Certificate Chain[edit]
There are three certificates in this chain:
CERTIFICATE | SIGNATURE TYPE | RETAIL CERT NAME | DEBUG CERT NAME | DESCRIPTION |
---|---|---|---|---|
CA | RSA-4096 | CA00000003 | CA00000004 | Used to verify the Ticket/TMD Certificates |
Ticket | RSA-2048 | XS0000000c | XS00000009 | Used to verify the Ticket signature |
TMD | RSA-2048 | CP0000000b | CP0000000a | Used to verify the TMD signature |
The CA certificate is issued by 'Root', the public key for which is stored in NATIVE_FIRM.
Meta[edit]
The structure of this data is as follows:
START | SIZE | DESCRIPTION |
---|---|---|
0x00 | 0x180 | Title ID dependency list - Taken from the application's ExHeader |
0x180 | 0x180 | Reserved |
0x300 | 0x4 | Core Version |
0x304 | 0xFC | Reserved |
0x400 | 0x36C0 | Icon Data(.ICN) - Taken from the application's ExeFS |
Obviously this section is not present in TWL CIA files, or any other CIA file which does not contain a CXI.
3ds To Cia Converter V4.1 Could Not Read Exheader File
Tools[edit]
- 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.
- make_cia - Generating CIA files. Requires CommonKey and ticket/TMD RSA-2048 private exponents.
- make_cdn_cia - (CMD)(Windows/Linux) Generates CIA files from CDN Content
- makerom - Tool which can be used to create NCCH, CCI, and CIA files.
Title Key Encryption[edit]
The unencrypted Title Key is used to encrypt the data in a CIA. The encrypted Title Key of a CIA can be found at offset 0x1BF in a CIA's Ticket.Each Title Key is encrypted with AES-CBC to get the encrypted Title Key.
3ds To Cia Converter Could Not Read Exheader Files
To encrypt an unencrypted title key, you need:
- Common key (as byte array)
- Title ID (as ulong)
- (and of course the unencrypted title key you want to encrypt) (as byte array)
The title key encryption process starts by converting the ulong (Title ID) into a byte array using by retrieving the bytes of the Title ID using BitConverter.GetBytes().If the converted bytes (title ID) are in Little Endian, reverse those bytes. (in C# it would be Array.Reverse(byte_array_from_bitconverter))This process makes the Title Key encryption IV.
Next, after you've gotten your Title Key's IV, you can start your cryptography transformation. Using AESManaged, where:
Key = Common Key
IV = the byte array found in the conversion process above
Mode = CipherMode.CBC
Create the encryptor (AesManaged.CreateEncryptor(key, iv)) where the key and IV are both the same as above.
Then, create a CryptoStream and a MemoryStream. The Crypto stream should start with the arguments (memorystream, aes_transform_from_above, CryptoStreamMode.Write).
Write to the CryptoStream where buffer=unencrypted_titlekey, offset=0, and count=the length of the unencrypted title key.
Use FlushFinalBlock() on the CryptoStream.
Finally, then, the encrypted title key will be available from your memory stream. (to output the calculated encrypted title key as a byte array, you can use memorystream.ToArray(), for example)
Example function: (C#)
As the age of digital games goes on, more and more people are downloading titles from the Nintendo eShop rather than purchasing physical copies. The convenience of this is you always have your games with you, so you don’t have to swap out cards or carry them with you. There are plenty of downsides that should be addressed by Nintendo in the future, but if you find yourself running out of space on a 32GB card for all of your games, this guide should help you.
[Note: This guide is for Windows computers. Mac and Linux formatting can be done using standard tools available on those platforms.]
Getting Started
You’ll need a 64GB SD card or larger. You’ll also need a PC in order to do the transfer after you’ve successfully formatted the destination card, as well as the Nintendo 3DS and your old card. The difficult part of this is that Windows 7 itself doesn’t make it easy to format the SD card. The SD card needs to be formatted to FAT32, but Windows 7 only supports this format up to 32GB. In order to properly format the card, we’ll need a partition tool.
I recommend MiniTool Partition Wizard, which can be downloaded for free. Once you install it, you should see a screen like this that has all of your drives.
As you can see, I have two hard disks, and the third is labeled F, which is the SD card inserted into the computer. This is the drive I want to format for the Nintendo 3DS. Be 100% certain you select the proper drive, or you could do a lot of damage to your computer!
Select the proper partition, and then choose “Create”. You’ll want to select the following options:
Create As: Primary
File System: FAT32
Cluster Size: 32kb
Drive Letter:
Be sure you set a drive letter, otherwise Windows won’t recognize the drive to let you copy files to it. Hit “Okay” and it should format the card for use with your Nintendo 3DS. Once you hit Okay, you’ll need to “Apply” the settings in the main window. This will take a moment. After it’s complete, you’ll have an “all changes were completed successfully” window.
That’s it! It’s ready to be used in the Nintendo 3DS. Turn your machine off and then back on and insert the SD card and you should get an initializing screen. Once that is complete, check the Data Management app of the Nintendo 3DS and you should see a very large number of blocks, according to the size of the SD card you just formatted. Mine was a 64GB card and this is what it looks like:
Transferring Files to the Nintendo 3DS
Now that you have both SD cards formatted for use in the Nintendo 3DS, you need to transfer files from your old card to the new card. Copy EVERYTHING on the old card to a new folder on your desktop named Nintendo. Depending on the amount of files you have on your old card, this transfer could take a while.
Once you have the files in a folder on your desktop, insert the newly formatted card into your computer and then drag all the files from the folder on your desktop to the new SD card. Once again, this process could take a while if you’ve got a lot of data. Once that’s finished, you’ve got one more step before you can enjoy your new high capacity card.
Open the “Nintendo 3DS” folder on your card and you should see two folders, both with large strings of letters and numbers as the name. Right click each and choose Properties to see the file size. Open the largest of the two folders and copy everything inside it to the smaller folder. Once that is done, you can delete the old folder. Then you should be able to insert the SD card into your Nintendo 3DS and see all the games you’ve downloaded, as well as have tons of extra space for new games!
If you have any questions about the process, don’t hesitate to leave a comment and I’ll try and help you through any issues you may be having with this method.
SanDisk 200GB microSD card – $77
Neverstill Media has affiliate partnerships. These do not influence editorial content, though Neverstill Media may earn commissions for products purchased via affiliate links.