]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/nessie_bc_test.c
new hash function abstraction layer + shavs + dump util + ...
[avr-crypto-lib.git] / test_src / nessie_bc_test.c
index 70cd883a65fa32df41ec2e1748f84c56d677653f..3f05a552a1f078cdbdd9cb49af1a3ce31af1421b 100644 (file)
@@ -1,6 +1,6 @@
 /* nessie_bc_test.c */
 /*
-    This file is part of the This file is part of the AVR-Crypto-Lib.
+    This file is part of the AVR-Crypto-Lib.
     Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
 
     This program is free software: you can redistribute it and/or modify
@@ -63,12 +63,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