]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/shavs.c
clean up
[avr-crypto-lib.git] / test_src / shavs.c
index 17941ae506110fb13863a1bdb52467899cf94df0..3b0b389842d50b5f99c18eff78a946f17f33a778 100644 (file)
@@ -30,7 +30,7 @@
 #include <string.h>
 #include <ctype.h>
 #include "hashfunction_descriptor.h"
-#include "hfal-basic.h"
+#include "hfal/hfal-basic.h"
 #include "shavs.h"
 #include "string-extras.h"
 #include "cli.h"
@@ -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));