From 64980d83458cc60474b486444499e75e67121ee1 Mon Sep 17 00:00:00 2001 From: Vamsi Krishna Date: Wed, 31 Oct 2018 23:13:54 +0530 Subject: [PATCH] Fix typos and re-arrange content --- AES-Keys.md | 62 +++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 33 deletions(-) diff --git a/AES-Keys.md b/AES-Keys.md index 5ecd090..0c1073f 100644 --- a/AES-Keys.md +++ b/AES-Keys.md @@ -1,6 +1,33 @@ Users can provide some additional crypto keys to enable some advanced features in citra. These keys are not officially provided by citra due to legal considerations. +# Instructions to obtain AES Keys -The keys are supplied by filling the file `sysdata/aes_keys.txt` (located in the [[User Directory]]) in the following format: +### Method 1 +In this method, you will need to dump your bootrom, native_firm & secret section(for n3ds) from your console. + +**Note:** You will still need to provide the `0x25 KeyX` using Method 2. + +**Step 1** - bootrom + +The bootrom boot9.bin can be dumped with Godmode9: + +``` +go to drive M: Memory Virtual +navigate to boot9.bin, press A +Select Copy to O:/gm9out +=> This will give you boot9.bin in gm9out on your SD card +The boot9.bin needs to be placed in sysdata in the user directory. +``` +**Step 2** - native_firm & secret section + +**For o3DS / o2DS** +* In GodMode9, navigate to `sysnand ctrnand` -> `title` -> and then dump `00040138/00000003` as cia and install it in Citra. + +**For n3DS/n2DS** +* In GodMode9, naviagte to `sysnand ctrnand` -> `title` -> and then dump `00040138/20000003` as cia and install it in Citra. +* Dump the secret section with godmode9 and copy the file (sector0x96.bin) to sys_data in the user folder. + +### Method 2 +As an alternative, instead of dumping the required files, you can provide all the AES keys manually. The keys are supplied by filling the file `sysdata/aes_keys.txt` (located in the [[User Directory]]) in the following format: ``` generator=0123456789ABCDEF0123456789ABCDEF slot0x0DKeyX=0123456789ABCDEF0123456789ABCDEF @@ -38,35 +65,4 @@ The strings `0123456789ABCDEF0123456789ABCDEF` in the example above are all plac ### Installing encrypted CIA Required keys: `generator`, `slot0x3DKeyX` and `common0`. `common1`~`5`are probably also required for some - unusual CIA. - - -# Instructions to obtain AES Keys - -### Method 1 -In this method, you will need to dump your bootrom, native_firm & secret section(for n3ds) from your console. - -**Step 1** - bootrom - -The bootrom boot9.bin can be dumped with Godmode9: - -``` -go to drive M: Memory Virtual -navigate to boot9.bin, press A -Select Copy to O:/gm9out -=> This will give you boot9.bin in gm9out on your SD card -The boot9.bin needs to be placed in sysdata in the user directory. -``` -**Step 2** - native_firm & secret section - -**For o3DS / o2DS** -* In GodMode9, navigate to `sysnand ctrnand` -> `title` -> and then dump `00040138/00000003` as cia and install it in Citra. - -**For n3DS/n2DS** -* In GodMode9, naviagte to `sysnand ctrnand` -> `title` -> and then dump `00040138/20000003` as cia and install it in Citra. -* Dump the secret section with godmode9 and copy the file (sector0x96.bin) to sys_data in the user folder. - -**Note:** You will still need to provide the `0x25` KeyX using Method 2. - -### Method 2 -As an alternative, instead of dumping the required files, you can provide all the AES keys by adding them to `sysdata/aes_keys.txt`. This file is located in the [[User Directory]]. + unusual CIA. \ No newline at end of file