X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fshavs.c;h=39b862b67899b43b1dcc5f498b7b0523ee9e94b1;hp=17941ae506110fb13863a1bdb52467899cf94df0;hb=1b51cba0fd060fa2d4aeb085bb51a634c542181d;hpb=de0d7d8778c704a188d6c2cff0f0b7e076589fce 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));