]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/shavs.c
adding Keccak
[avr-crypto-lib.git] / test_src / shavs.c
index 17941ae506110fb13863a1bdb52467899cf94df0..39b862b67899b43b1dcc5f498b7b0523ee9e94b1 100644 (file)
@@ -303,9 +303,11 @@ void shavs_test1(void){ /* KAT tests */
                cli_putstr_P(PSTR("\r\n\t (temp)      == "));
                cli_hexdump_rev(&temp,2);
                _delay_ms(500);
-#endif
+               temp=length-(shavs_ctx.blocks)*((shavs_ctx.buffersize_B)*8);
+#else
                uint16_t temp=length-(shavs_ctx.blocks)*((shavs_ctx.buffersize_B)*8);
-/*             cli_putstr_P(PSTR("\r\n\t (temp)      == "));
+#endif
+               /*              cli_putstr_P(PSTR("\r\n\t (temp)      == "));
                cli_hexdump_rev(&temp,2); */
                hfal_hash_lastBlock( &(shavs_ctx.ctx), buffer, /* be aware of freaking compilers!!! */
 //                                                     length-(shavs_ctx.blocks)*((shavs_ctx.buffersize_B)*8));