aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmark.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-12 14:32:28 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-12 14:32:28 +0100
commitd6f6a9031c9cb4ab0d67a21c23cc3f934ecc0065 (patch)
tree7d9a5c483664e57936a9da72afefc7379b1cc9dd /src/benchmark.c
parentadd another test (diff)
downloadlibkeccak-d6f6a9031c9cb4ab0d67a21c23cc3f934ecc0065.tar.gz
libkeccak-d6f6a9031c9cb4ab0d67a21c23cc3f934ecc0065.tar.bz2
libkeccak-d6f6a9031c9cb4ab0d67a21c23cc3f934ecc0065.tar.xz
add secure variants of update and digest
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/benchmark.c')
-rw-r--r--src/benchmark.c4
1 files changed, 2 insertions, 2 deletions
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);