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.