mid-kid / CakesForeveryWan

A CFW for the 3DS.
GNU General Public License v3.0
128 stars 29 forks source link

CETK decryption fails on arm9loaderhax #26

Closed ghost closed 8 years ago

ghost commented 8 years ago

On my two 3DSes, CETK/firmware.bin (Depending on if I include the firmkey) decryption fails via A9LH. They work normally via any other entrypoint.

Syphurith commented 8 years ago

It lacks some key needed. From A9LH it would at least miss the keys inside NATIVE_FIRM ARM9 section including Process9 NCCH. So setup the keys you have before decryption or firmlaunch.

ghost commented 8 years ago

Mind telling me which keys are required?

Syphurith commented 8 years ago

@fox8091 From 3dbrew:AES_Registers.KeySlots, read the whole sheet. I must admit I don't know what the keys should be. However if you force the console to try encrypt a known-text with its Normal Key in Keyslots, and compare the output with what you can get from other entrypoints, the comparison would tell you which keyslots are different.

mid-kid commented 8 years ago

For everyone getting here, just like I state on the FAQ on GBATemp, get a firmkey.bin for your console from anywhere, plailect's guide, for example: https://github.com/Plailect/Guide/wiki/Part-5-%28arm9loaderhax-&-Cakes%29