]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/shavs.c
[shavs-test-suite] fixing bug with wrong reported buffer size
[avr-crypto-lib.git] / test_src / shavs.c
index 84cf9f2ce9de5aea5089ec5675c46ea99803d6c0..53fd488e6e24d798ae17a6e35c9ebeb827ab742e 100644 (file)
@@ -200,7 +200,7 @@ void shavs_test1(void){ /* KAT tests */
        shavs_ctx.buffersize_B=pgm_read_word(&(shavs_algo->blocksize_b))/8;
        uint8_t buffer[shavs_ctx.buffersize_B+5];
        shavs_ctx.buffer = buffer;
-       fprintf_P(shavs_out_file, PSTR("\nbuffer_size = 0x%04"PRIx16" bytes"));
+       fprintf_P(shavs_out_file, PSTR("\nbuffer_size = 0x%04"PRIx16" bytes"), shavs_ctx.buffersize_B);
        for(;;){
                shavs_ctx.blocks = 0;
                memset(buffer, 0, shavs_ctx.buffersize_B);