X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fmain-shabea-test.c;h=471881eac18c81fb40cb68cbf39e703e71f0d9a9;hb=306468ce9c4073b85c3d9431da13739a01e6d752;hp=5748b9499ac987de6032dbe83932bd2366d7289f;hpb=701cee0d98aab48dd3192c8cc7c77eb42581bc56;p=avr-crypto-lib.git diff --git a/test_src/main-shabea-test.c b/test_src/main-shabea-test.c index 5748b94..471881e 100644 --- a/test_src/main-shabea-test.c +++ b/test_src/main-shabea-test.c @@ -25,20 +25,13 @@ * GPLv3 or later * */ -#include "config.h" -#include "uart_i.h" -#include "debug.h" +#include "main-test-common.h" #include "shabea.h" #include "nessie_bc_test.h" -#include "cli.h" #include "performance_test.h" -#include -#include -#include - char* algo_name = "Shabea"; /***************************************************************************** @@ -180,14 +173,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); } }