summaryrefslogtreecommitdiff
path: root/utils/nwztools/upgtools/fwp.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-01-04 16:36:27 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-04 17:04:38 +0100
commit92ecbd5fb8a7c8e939b1b4dde82cc6c9ba9d41af (patch)
tree5e187e031ab8648e2c2c58502f167abc72ec606c /utils/nwztools/upgtools/fwp.c
parent5cfd4a5b8e551c23600c93838180487e91698814 (diff)
downloadrockbox-92ecbd5fb8a7c8e939b1b4dde82cc6c9ba9d41af.tar.gz
rockbox-92ecbd5fb8a7c8e939b1b4dde82cc6c9ba9d41af.zip
nwztools/upg: move upg handling to its own file, completely rework kas handling
This was a huge mess, the new is much cleaner hopefully. Change-Id: I43663d021dc8bc31662d3923e1c3da22d987ebf9
Diffstat (limited to 'utils/nwztools/upgtools/fwp.c')
-rw-r--r--utils/nwztools/upgtools/fwp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/nwztools/upgtools/fwp.c b/utils/nwztools/upgtools/fwp.c
index c300f42f34..34c55f6e5a 100644
--- a/utils/nwztools/upgtools/fwp.c
+++ b/utils/nwztools/upgtools/fwp.c
@@ -19,6 +19,7 @@
19 * 19 *
20 ****************************************************************************/ 20 ****************************************************************************/
21#include <stdio.h> 21#include <stdio.h>
22#include <stdlib.h>
22#include "fwp.h" 23#include "fwp.h"
23#include "misc.h" 24#include "misc.h"
24#include "mg.h" 25#include "mg.h"
@@ -53,9 +54,6 @@ int fwp_crypt(void *buf, int size, int mode)
53 size -= NWZ_KEY_SIZE; 54 size -= NWZ_KEY_SIZE;
54 } 55 }
55 if(size != 0) 56 if(size != 0)
56 { 57 abort();
57 cprintf(GREY, "Cannot fwp_crypt non-multiple of 8!\n");
58 return -1;
59 }
60 return 0; 58 return 0;
61} \ No newline at end of file 59}