X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fshavs.c;h=3b0b389842d50b5f99c18eff78a946f17f33a778;hb=7b5401ab9ce23a5da1de8b6c7de3a1aa20ac4cf8;hp=17941ae506110fb13863a1bdb52467899cf94df0;hpb=e1cb3a050dbdb395e9d87f954d754046481b82f7;p=avr-crypto-lib.git diff --git a/test_src/shavs.c b/test_src/shavs.c index 17941ae..3b0b389 100644 --- a/test_src/shavs.c +++ b/test_src/shavs.c @@ -30,7 +30,7 @@ #include #include #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));