X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fmain-keccak-test.c;h=80ed373bbafd5b6dce977a06c85d3e9c5645a803;hb=25ccd391d2f02575799e94bf9aac1e108e7c0f3b;hp=42aeb4aa5fc6fa45d5a654d9fcf843d718b54179;hpb=794b705a0b4dedf4eab3aabcf39f76bf9856ee3f;p=avr-crypto-lib.git diff --git a/test_src/main-keccak-test.c b/test_src/main-keccak-test.c index 42aeb4a..80ed373 100644 --- a/test_src/main-keccak-test.c +++ b/test_src/main-keccak-test.c @@ -60,7 +60,8 @@ void test_256(void){ memset(null, 0, KECCAK256_BLOCKSIZE_B); keccak_ctx_t ctx; keccak256_init(&ctx); - keccak_lastBlock(&ctx, data, 29); + keccak_nextBlock(&ctx, null); + // keccak_lastBlock(&ctx, data, 29); keccak256_ctx2hash(hash, &ctx); cli_putstr_P(PSTR("\r\n testhash: ")); cli_hexdump(hash, 32);