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