]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/main-keccak-test.c
[shavs-test-suite] fixing bug with wrong reported buffer size
[avr-crypto-lib.git] / test_src / main-keccak-test.c
index 501eb4b28e72234fafac0d94aa6698378f5c462b..127cb62d130297d4cb538ef586b034df768aae4f 100644 (file)
@@ -53,7 +53,7 @@ void test_256(void){
        keccak_ctx_t ctx;
        keccak256_init(&ctx);
        keccak_nextBlock(&ctx, null);
-       //      keccak_lastBlock(&ctx, data, 29);
+       keccak_lastBlock(&ctx, null, 29);
        keccak256_ctx2hash(hash, &ctx);
        cli_putstr_P(PSTR("\r\n testhash: "));
        cli_hexdump(hash, 32);
@@ -92,7 +92,7 @@ const cmdlist_entry_t cmdlist[] PROGMEM = {
        { NULL,                      NULL, NULL                      }
 };
 
-int main (void){
+int main(void){
     main_setup();
 
     shavs_algolist=(hfdesc_t**)algolist;