diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-12 14:32:28 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-12 14:32:28 +0100 |
commit | d6f6a9031c9cb4ab0d67a21c23cc3f934ecc0065 (patch) | |
tree | 7d9a5c483664e57936a9da72afefc7379b1cc9dd /src/benchmark.c | |
parent | add another test (diff) | |
download | libkeccak-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 '')
-rw-r--r-- | src/benchmark.c | 4 |
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); |