twltool
twltool copied to clipboard
boot2: derive keyY as twl boot9 does, add support for ntrboot images
- Adds support for obtaining the bootloader image keyY from the RSA signature message as TWL boot9 does. For NAND/SPI it tries NAND pubkey, and then SPI if the NAND pubkey doesn't work.
- Adds support for decrypting TWL ntrboot images, these have the RSA signature at offset 0x100 and have the ARM7/ARM9 image descriptors at the same offset as a regular DS cart.