forked from len0rd/rockbox
nwztools: cleanup the code
There was a lot of copy and paste, and the code was just crap. This commit tries to clarify the code and also document the encryption procedure. Hopefully I didn't break anything. Change-Id: I257793010e7cf94f2b090b30bb8608359d3886e3
This commit is contained in:
parent
de8950d63d
commit
cf82f208e3
6 changed files with 291 additions and 298 deletions
|
|
@ -28,8 +28,9 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#define NWZ_KAS_SIZE 32
|
||||
#define NWZ_KEYSIG_SIZE 51
|
||||
#define NWZ_KEYSIG_SIZE 16
|
||||
#define NWZ_KEY_SIZE 8
|
||||
#define NWZ_SIG_SIZE 8
|
||||
#define NWZ_EXPKEY_SIZE (NWZ_KEY_SIZE * NWZ_KEY_SIZE)
|
||||
#define NWZ_DES_BLOCK 8
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue