X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fmain-twister-test.c;h=cdfa865d6b8c594e7334b0fdbd0a1eb1d6002f0c;hp=6e23154ed378cb2ce3ef71d83d5c8c9fabfa5ac4;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=a45c328791dc391e6432051ee0c7972ef7fd8d9a diff --git a/test_src/main-twister-test.c b/test_src/main-twister-test.c index 6e23154..cdfa865 100644 --- a/test_src/main-twister-test.c +++ b/test_src/main-twister-test.c @@ -1,7 +1,7 @@ /* main-twister-test.c */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008, 2009 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 @@ -37,9 +37,9 @@ #include "hfal-test.h" #include "shavs.h" -char* algo_name = "TWISTER"; +char *algo_name = "TWISTER"; -const hfdesc_t* const algolist[] PROGMEM = { +const hfdesc_t *const algolist[] PROGMEM = { (hfdesc_t*)&twister224_desc, (hfdesc_t*)&twister256_desc, (hfdesc_t*)&twister384_desc, @@ -60,27 +60,27 @@ void testrun_nessie_twister(void){ * *****************************************************************************/ -void test_twister224( void* msg, uint32_t length_b){ +void test_twister224( void *msg, uint32_t length_b){ hfal_test(&twister224_desc, msg, length_b); } -void test_twister256( void* msg, uint32_t length_b){ +void test_twister256( void *msg, uint32_t length_b){ hfal_test(&twister256_desc, msg, length_b); } -void test_twister384( void* msg, uint32_t length_b){ +void test_twister384( void *msg, uint32_t length_b){ hfal_test(&twister384_desc, msg, length_b); } -void test_twister512( void* msg, uint32_t length_b){ +void test_twister512( void *msg, uint32_t length_b){ hfal_test(&twister512_desc, msg, length_b); } void testrun_twister(void){ - const hfdesc_t* desc[4] = { &twister224_desc, &twister256_desc, + const hfdesc_t *desc[4] = { &twister224_desc, &twister256_desc, &twister384_desc, &twister512_desc }; uint8_t i,j; - char* testv[]={ + char *testv[]={ "", "a", "abc",