tests/bench-slope: add missing cipher context reset
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 27 Jan 2019 09:19:56 +0000 (11:19 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 27 Jan 2019 09:19:56 +0000 (11:19 +0200)
commit546f13ae08918726791600cdd0d0be56cc52c790
tree4fc0a0d03dd1e55fe8333ac4ea9c4ebcd0190490
parentd6330dfb4b0e9fb3f8eef65ea13146060b804a97
tests/bench-slope: add missing cipher context reset

* tests/bench-slope.c (bench_encrypt_do_bench)
(bench_decrypt_do_bench): Add call to 'gcry_cipher_reset'.
--

Some non-AEAD results were negativily affected by missing state
reset (~1% for aesni-ctr and chacha20-stream).

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
tests/bench-slope.c