app/crypto-perf: fix IV allocation for AEAD
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 1 Aug 2017 00:33:36 +0000 (01:33 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 3 Aug 2017 21:46:41 +0000 (23:46 +0200)
commitb27074cc949870a66b107d1b98192c39affee0f6
tree9c33b0a49b2af96c3e21da263081519d0b80d246
parent8820cba4d9cc2b055400e49af617a1a21beb724f
app/crypto-perf: fix IV allocation for AEAD

Memory is reserved after each crypto operation
for the necessary IV(s), which could be for cipher,
authentication or AEAD algorithms.
However, for AEAD algorithms (such as AES-GCM), this
memory was not being reserved, leading to potential
memory overflow.

Fixes: 8a5b494a7f99 ("app/test-crypto-perf: add AEAD parameters")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-crypto-perf/cperf_test_latency.c
app/test-crypto-perf/cperf_test_throughput.c
app/test-crypto-perf/cperf_test_verify.c