From 92ecbd5fb8a7c8e939b1b4dde82cc6c9ba9d41af Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 4 Jan 2017 16:36:27 +0100 Subject: 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 --- utils/nwztools/upgtools/fwp.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'utils/nwztools/upgtools/fwp.c') 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 @@ * ****************************************************************************/ #include +#include #include "fwp.h" #include "misc.h" #include "mg.h" @@ -53,9 +54,6 @@ int fwp_crypt(void *buf, int size, int mode) size -= NWZ_KEY_SIZE; } if(size != 0) - { - cprintf(GREY, "Cannot fwp_crypt non-multiple of 8!\n"); - return -1; - } + abort(); return 0; -} \ No newline at end of file +} -- cgit v1.2.3