From d6f6a9031c9cb4ab0d67a21c23cc3f934ecc0065 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 12 Nov 2014 14:32:28 +0100 Subject: add secure variants of update and digest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/benchmark.c') diff --git a/src/benchmark.c b/src/benchmark.c index e126d44..17b2e4b 100644 --- a/src/benchmark.c +++ b/src/benchmark.c @@ -108,12 +108,12 @@ int main(void) /* Updates. */ #if UPDATE_RUNS > 0 for (i = 0; i < UPDATE_RUNS; i++) - if (libkeccak_update(&state, message, MESSAGE_LEN) < 0) + if (libkeccak_fast_update(&state, message, MESSAGE_LEN) < 0) return perror("libkeccak_update"), 1; #endif /* Digest. */ - if (libkeccak_digest(&state, NULL, 0, 0, NULL, hashsum) < 0) + if (libkeccak_fast_digest(&state, NULL, 0, 0, NULL, hashsum) < 0) return perror("libkeccak_digest"), 1; #ifndef IGNORE_BEHEXING libkeccak_behex_lower(hexsum, hashsum, OUTPUT / 8); -- cgit v1.2.3-70-g09d2