From: Ciara Power Date: Tue, 21 Jun 2022 11:41:32 +0000 (+0000) Subject: test/crypto: fix cipher offset for ZUC X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7a0f8fe76bd03dc8b61965040a66409996afa717;p=dpdk.git test/crypto: fix cipher offset for ZUC The cipher offset in bits was not being used in ZUC encryption test functions when creating the operation, it was hardcoded to 0. This is fixed to use the offset from the test vector as intended. Fixes: fd01a9be38d5 ("test/crypto: move IV to crypto op private data") Cc: stable@dpdk.org Signed-off-by: Ciara Power Acked-by: Kai Ji --- diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 15df53a1f0..1cac76a64a 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -6033,7 +6033,7 @@ test_zuc_encryption(const struct wireless_test_data *tdata) retval = create_wireless_algo_cipher_operation(tdata->cipher_iv.data, tdata->cipher_iv.len, tdata->plaintext.len, - 0); + tdata->validCipherOffsetInBits.len); if (retval < 0) return retval; @@ -6128,7 +6128,7 @@ test_zuc_encryption_sgl(const struct wireless_test_data *tdata) /* Create ZUC operation */ retval = create_wireless_algo_cipher_operation(tdata->cipher_iv.data, tdata->cipher_iv.len, tdata->plaintext.len, - 0); + tdata->validCipherOffsetInBits.len); if (retval < 0) return retval;