Line 17:
Line 17:
== Encryption ==
== Encryption ==
−
−
The icon database is encrypted with AES-128-CBC. There's a two byte header:
−
−
byte 0: always zero.
−
byte 1: aes key index
−
−
followed by encrypted data.
nn_idbe contains hardcoded keys in one 0x50 sized block (0x10 * 5), consisting of the 16-byte hardcoded IV, and 4 hardcoded 16-byte AES-128 keys.
nn_idbe contains hardcoded keys in one 0x50 sized block (0x10 * 5), consisting of the 16-byte hardcoded IV, and 4 hardcoded 16-byte AES-128 keys.