test/crypto: fix auth-cipher compare length in OOP
authorKai Ji <kai.ji@intel.com>
Tue, 4 May 2021 14:19:41 +0000 (15:19 +0100)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 5 May 2021 15:08:14 +0000 (17:08 +0200)
commit91317c0155662fcf188fac2152f33c79f90c6433
treee11d76e5abb22ed1772d89820103c8e32a20c3c9
parent1c91424d0a4327634e3e0534c53d75aac02da410
test/crypto: fix auth-cipher compare length in OOP

For out-of-place operations, comparing expected ciphertext with
the operation result should skip cipher_offset bytes, as those
will not be copied from source to the destination buffer, making
the tests fail.

Fixes: 02ed7b3871d6 ("test/crypto: add SNOW3G test cases for auth-cipher")
Cc: stable@dpdk.org
Signed-off-by: Kai Ji <kai.ji@intel.com>
Signed-off-by: Damian Nowak <damianx.nowak@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
app/test/test_cryptodev.c