app/crypto-perf: avoid wrong operation type for AEAD algos
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Wed, 8 Mar 2017 17:03:25 +0000 (18:03 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 5 Apr 2017 22:17:44 +0000 (00:17 +0200)
commit5e669376316651d6b6ed2d67cc0cb9a7d4c63b3a
tree7d375cf2fcc7e91ba5ddea82f962710fde119b52
parent5d75fb09d3bec3bc5c36bb50886d33389d13616d
app/crypto-perf: avoid wrong operation type for AEAD algos

When somebody use bad --optype with aead algorithms
segmentation fault could happen.

Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-crypto-perf/cperf_options_parsing.c
app/test-crypto-perf/main.c
doc/guides/tools/cryptoperf.rst