]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/main-echo-test.c
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / test_src / main-echo-test.c
index 552c0632dcc7cad54dfe13b020bed071392b04c8..49efba890d2bec24ef6b636a062b95a2a1c15a05 100644 (file)
@@ -1,7 +1,7 @@
 /* main-echo-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
 #include "hfal-performance.h"
 #include "hfal-test.h"
 
-charalgo_name = "Echo";
+char *algo_name = "Echo";
 
 
-const hfdesc_tconst algolist[] PROGMEM = {
+const hfdesc_t *const algolist[] PROGMEM = {
        (hfdesc_t*)&echo224_desc,
        (hfdesc_t*)&echo256_desc,
        (hfdesc_t*)&echo384_desc,
@@ -166,20 +166,12 @@ 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*)&echo256_desc;
        for(;;){
-               cli_putstr_P(PSTR("\r\n\r\nCrypto-VS ("));
-               cli_putstr(algo_name);
-               cli_putstr_P(PSTR("; "));
-               cli_putstr(__DATE__);
-               cli_putstr_P(PSTR(" "));
-               cli_putstr(__TIME__);
-               cli_putstr_P(PSTR(")\r\nloaded and running\r\n"));
+           welcome_msg(algo_name);
 
                cmd_interface(cmdlist);
        }