summaryrefslogtreecommitdiff
path: root/utils/nwztools/upgtools/fwp.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-08-30 17:19:30 +1000
committerAmaury Pouly <amaury.pouly@gmail.com>2016-08-30 17:21:05 +1000
commitcf82f208e3ece54fd38cb7c90b77ad91aa3a4c8c (patch)
tree5fe88d8fdaa9306a28b65a2dad042e0b6577816e /utils/nwztools/upgtools/fwp.h
parentde8950d63da5ce199a94e3f094a7e13da3eeca6c (diff)
downloadrockbox-cf82f208e3ece54fd38cb7c90b77ad91aa3a4c8c.tar.gz
rockbox-cf82f208e3ece54fd38cb7c90b77ad91aa3a4c8c.zip
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
Diffstat (limited to 'utils/nwztools/upgtools/fwp.h')
-rw-r--r--utils/nwztools/upgtools/fwp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/nwztools/upgtools/fwp.h b/utils/nwztools/upgtools/fwp.h
index 7b527d47ba..0d928fbec1 100644
--- a/utils/nwztools/upgtools/fwp.h
+++ b/utils/nwztools/upgtools/fwp.h
@@ -28,8 +28,9 @@ extern "C" {
28#endif 28#endif
29 29
30#define NWZ_KAS_SIZE 32 30#define NWZ_KAS_SIZE 32
31#define NWZ_KEYSIG_SIZE 51 31#define NWZ_KEYSIG_SIZE 16
32#define NWZ_KEY_SIZE 8 32#define NWZ_KEY_SIZE 8
33#define NWZ_SIG_SIZE 8
33#define NWZ_EXPKEY_SIZE (NWZ_KEY_SIZE * NWZ_KEY_SIZE) 34#define NWZ_EXPKEY_SIZE (NWZ_KEY_SIZE * NWZ_KEY_SIZE)
34#define NWZ_DES_BLOCK 8 35#define NWZ_DES_BLOCK 8
35 36