]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/nessie_bc_test.c
fix to make HFAL run correctly with Skein
[avr-crypto-lib.git] / test_src / nessie_bc_test.c
index 3d96c62f28fbd4738056cb2e94a55b67202ae517..6d55c57f539866533bf4139fa474cc7d7ea054fe 100644 (file)
@@ -29,7 +29,6 @@
 #include <string.h>
 #include "nessie_bc_test.h"
 #include "nessie_common.h"
-#include "uart.h"
 
 nessie_bc_ctx_t nessie_bc_ctx;
 
@@ -63,12 +62,14 @@ void nessie_bc_enc(uint8_t* key, uint8_t* pt){
        memcpy(buffer, pt, nessie_bc_ctx.blocksize_B);
        for(i=0; i<100; ++i){
                nessie_bc_ctx.cipher_enc(buffer, ctx);
+               NESSIE_SEND_ALIVE_A(i);
        }
        nessie_print_item("Iterated 100 times", buffer, nessie_bc_ctx.blocksize_B);
 #ifndef NESSIE_NO1KTEST        
        /* 1000 times test, we use the 100 precedig steps to fasten things a bit */
        for(; i<1000; ++i){
                nessie_bc_ctx.cipher_enc(buffer, ctx);
+               NESSIE_SEND_ALIVE_A(i);
        }
        nessie_print_item("Iterated 1000 times", buffer, nessie_bc_ctx.blocksize_B);
 #endif