X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fmain-whirlpool-t-test.c;h=0474039997c4a71d89d154829976fdd563ff86e2;hb=45d15fcc098c9eece5c39b5e421a1706f187a0d3;hp=1b446802f0e744eb98c4001d33610556c25e0622;hpb=701cee0d98aab48dd3192c8cc7c77eb42581bc56;p=avr-crypto-lib.git diff --git a/test_src/main-whirlpool-t-test.c b/test_src/main-whirlpool-t-test.c index 1b44680..0474039 100644 --- a/test_src/main-whirlpool-t-test.c +++ b/test_src/main-whirlpool-t-test.c @@ -21,10 +21,8 @@ * */ -#include "config.h" -#include "uart_i.h" -#include "debug.h" +#include "main-test-common.h" #include "whirlpool.h" #include "nessie_hash_test.h" @@ -32,10 +30,6 @@ #include "hfal-performance.h" #include "hfal-nessie.h" -#include -#include -#include -#include "cli.h" #include "shavs.h" #include "hfal_whirlpool_t.h" #include "dump.h" @@ -156,16 +150,13 @@ const cmdlist_entry_t cmdlist[] PROGMEM = { }; int main (void){ - DEBUG_INIT(); + main_setup(); - cli_rx = (cli_rx_fpt)uart0_getc; - cli_tx = (cli_tx_fpt)uart0_putc; - shavs_algolist=(hfdesc_t**)algolist; + shavs_algolist=(hfdesc_t**)algolist; shavs_algo=(hfdesc_t*)&whirlpool_t_desc; + for(;;){ - cli_putstr_P(PSTR("\r\n\r\nCrypto-VS (")); - cli_putstr(algo_name); - cli_putstr_P(PSTR(")\r\nloaded and running\r\n")); - cmd_interface(cmdlist); + welcome_msg(algo_name); + cmd_interface(cmdlist); } }