]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/main-hmac-sha1-test.c
added rsa pkcs#1 v1.5 encryption
[avr-crypto-lib.git] / test_src / main-hmac-sha1-test.c
index 865300f9836344c8ef3f5c4321c613127a9db181..02b1e6d57c17f530c7e827de47ba6b5e240406e9 100644 (file)
@@ -22,8 +22,8 @@
 */
 
 #include "config.h"
-#include "serial-tools.h"
-#include "uart.h"
+
+#include "uart_i.h"
 #include "debug.h"
 
 #include "sha1.h"
@@ -65,7 +65,7 @@ const char test_str[]        PROGMEM = "test";
 /* const char performance_str[] PROGMEM = "performance"; */
 const char echo_str[]        PROGMEM = "echo";
 
-cmdlist_entry_t cmdlist[] PROGMEM = {
+const cmdlist_entry_t cmdlist[] PROGMEM = {
        { nessie_str,      NULL, testrun_nessie_hmacsha1},
        { test_str,        NULL, testrun_nessie_hmacsha1},
 /*     { performance_str, NULL, testrun_performance_hmacsha1}, */
@@ -76,8 +76,8 @@ cmdlist_entry_t cmdlist[] PROGMEM = {
 int main (void){
        DEBUG_INIT();
        
-       cli_rx = uart_getc;
-       cli_tx = uart_putc;             
+       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);