app/test: fix buffer lengths for SNOW 3G
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 20 Jun 2016 14:44:58 +0000 (15:44 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 20 Jun 2016 20:38:49 +0000 (22:38 +0200)
commit8bd4d819bf827b1f83e94ee9a4d0a2e7b81c81d8
treedeb3007728617d4a4cfb723249790528a656dc91
parent3e03286f43ef1ee2a4b246f0057ebca9093ded11
app/test: fix buffer lengths for SNOW 3G

No padding was added in the input buffers for snow3G tests,
due to a wrong calculation of the length (should be multiple
of the block size). This fix takes into account the case
where the length is not byte multiple.

Fixes: 8bdf665fe6c0 ("app/test: add SNOW 3G")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Deepak Kumar Jain <deepak.k.jain@intel.com>
app/test/test_cryptodev.c