From cf82f208e3ece54fd38cb7c90b77ad91aa3a4c8c Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 30 Aug 2016 17:19:30 +1000 Subject: 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 --- utils/nwztools/upgtools/keysig_search.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/nwztools/upgtools/keysig_search.h') diff --git a/utils/nwztools/upgtools/keysig_search.h b/utils/nwztools/upgtools/keysig_search.h index 46639dfb47..9009a73284 100644 --- a/utils/nwztools/upgtools/keysig_search.h +++ b/utils/nwztools/upgtools/keysig_search.h @@ -23,6 +23,7 @@ #include #include +#include "fwp.h" enum keysig_search_method_t { @@ -34,7 +35,8 @@ enum keysig_search_method_t }; /* notify returns true if the key seems ok */ -typedef bool (*keysig_notify_fn_t)(void *user, uint8_t key[8], uint8_t sig[8]); +typedef bool (*keysig_notify_fn_t)(void *user, uint8_t key[NWZ_KEY_SIZE], + uint8_t sig[NWZ_SIG_SIZE]); /* returns true if a key was accepted by notify */ typedef bool (*keysig_search_fn_t)(uint8_t *cipher, keysig_notify_fn_t notify, void *user); -- cgit v1.2.3