Home GnuPG

tests/bench-slope: add missing cipher context reset

Description

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>

Details

Provenance
jukiviliAuthored on Jan 27 2019, 10:19 AM
Parents
rCd6330dfb4b0e: Add stitched ChaCha20-Poly1305 SSSE3 and AVX2 implementations
Branches
Unknown
Tags
Unknown