]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/main-keccak-test.c
optimized rotates for keccak
[avr-crypto-lib.git] / test_src / main-keccak-test.c
index 42aeb4aa5fc6fa45d5a654d9fcf843d718b54179..80ed373bbafd5b6dce977a06c85d3e9c5645a803 100644 (file)
@@ -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);