From 0cd07d397fb5a5e7710af66cb1e9e0b61705c94a Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 10 Mar 2020 12:20:55 +0100 Subject: Crypto v2 draft working --- controller/fw/tools/crypto_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controller/fw/tools/crypto_test.c') diff --git a/controller/fw/tools/crypto_test.c b/controller/fw/tools/crypto_test.c index 8552117..410fac2 100644 --- a/controller/fw/tools/crypto_test.c +++ b/controller/fw/tools/crypto_test.c @@ -30,7 +30,7 @@ int main(int argc, char **argv) { uint8_t auth_key[16]; - for (size_t i=0; argv[1][i+0] != '\0' && argv[1][i+1] != '\0'; i+= 2) { + for (size_t i=0; argv[1][i+0] != '\0' && argv[1][i+1] != '\0' && i/2