X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fmain-bmw-test.c;h=7046a553876066e7b141e3ee6cf1e3e561f76377;hp=18d91a68ff3cc891c79fafeb751335b6f60f4a3e;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=a45c328791dc391e6432051ee0c7972ef7fd8d9a diff --git a/test_src/main-bmw-test.c b/test_src/main-bmw-test.c index 18d91a6..7046a55 100644 --- a/test_src/main-bmw-test.c +++ b/test_src/main-bmw-test.c @@ -1,7 +1,7 @@ /* main-bmw-test.c */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -35,10 +35,10 @@ #include "hfal-test.h" #include "performance_test.h" -char* algo_name = "BlueMidnightWish"; +char *algo_name = "BlueMidnightWish"; -const hfdesc_t* const algolist[] PROGMEM = { +const hfdesc_t *const algolist[] PROGMEM = { (hfdesc_t*)&bmw224_desc, (hfdesc_t*)&bmw256_desc, (hfdesc_t*)&bmw384_desc, @@ -58,18 +58,18 @@ void testrun_nessie_bmw(void){ hfal_nessie_multiple(algolist); } -void bmw224_test(void* msg, uint32_t length_b){ +void bmw224_test(void *msg, uint32_t length_b){ hfal_test(&bmw224_desc, msg, length_b); } -void bmw256_test(void* msg, uint32_t length_b){ +void bmw256_test(void *msg, uint32_t length_b){ hfal_test(&bmw256_desc, msg, length_b); } -void bmw384_test(void* msg, uint32_t length_b){ +void bmw384_test(void *msg, uint32_t length_b){ hfal_test(&bmw384_desc, msg, length_b); } -void bmw512_test(void* msg, uint32_t length_b){ +void bmw512_test(void *msg, uint32_t length_b){ hfal_test(&bmw512_desc, msg, length_b); } @@ -102,8 +102,8 @@ void test507(void){ } void testrun_stdtest_bmw(void){ - char* msg0 = "abc"; - char* msg1 = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"; + char *msg0 = "abc"; + char *msg1 = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"; bmw224_test(msg0, strlen(msg0)*8); bmw224_test(msg1, strlen(msg1)*8); bmw256_test(msg0, strlen(msg0)*8); @@ -114,18 +114,18 @@ void testrun_stdtest_bmw(void){ bmw512_test(msg1, strlen(msg1)*8); } -void bmw256_short_test(void* msg, uint32_t length_b){ +void bmw256_short_test(void *msg, uint32_t length_b){ bmw256_test("abc", 3*8); } void testshort(void){ - char* msg0 = "abc"; + char *msg0 = "abc"; bmw224_test(msg0, strlen(msg0)*8); } void testlshort(void){ - char* msg0 = "abc"; + char *msg0 = "abc"; bmw384_test(msg0, strlen(msg0)*8); }