X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fmain-hmac-md5-test.c;fp=test_src%2Fmain-hmac-md5-test.c;h=410592c90f7dc8c9f23ee44fb4e3ce462e1c465b;hb=a45c328791dc391e6432051ee0c7972ef7fd8d9a;hp=dc495367c346a73bbc60330bbf7d767c9db1d03c;hpb=4655b60cc205079ebafec3db4a4b47f7a8336bda;p=avr-crypto-lib.git diff --git a/test_src/main-hmac-md5-test.c b/test_src/main-hmac-md5-test.c index dc49536..410592c 100644 --- a/test_src/main-hmac-md5-test.c +++ b/test_src/main-hmac-md5-test.c @@ -21,23 +21,12 @@ * */ -#include "config.h" - -#include "uart_i.h" -#include "debug.h" +#include "main-test-common.h" #include "md5.h" #include "hmac-md5.h" -/* -#include "base64_enc.h" -#include "base64_dec.h" -*/ #include "nessie_mac_test.h" -#include -#include -#include "cli.h" - char* algo_name = "HMAC-MD5"; /***************************************************************************** @@ -182,13 +171,10 @@ const cmdlist_entry_t cmdlist[] PROGMEM = { }; int main (void){ - DEBUG_INIT(); - cli_rx = (cli_rx_fpt)uart0_getc; - cli_tx = (cli_tx_fpt)uart0_putc; - 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); + main_setup(); + + for(;;){ + welcome_msg(algo_name); + cmd_interface(cmdlist); } }