]> git.droids-corp.org - dpdk.git/commit
test/crypto: fix output buffer length
authorGagandeep Singh <g.singh@nxp.com>
Fri, 12 Nov 2021 07:53:48 +0000 (13:23 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 16 Nov 2021 07:24:39 +0000 (08:24 +0100)
commit0e51e342ac6c3c2030e98b90a319dbe232d4dd9d
tree1ea660b0166b8e0933be011489428b8be35edd9a
parent4b2cc736a5fec4e5a84effeba3087e1d753588a6
test/crypto: fix output buffer length

Input buffer length is getting appended with
padding length when the test case is encrypted
digest, but output buffer length is appended
with padding length for all the cases.

This patch fixes the output buffer length
by appending the padding length only when the
test case is of encrypted digest type.

Fixes: 6356c28642a6 ("test/crypto: add cases for block cipher encrypted digest")
Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
app/test/test_cryptodev_blockcipher.c