]> git.droids-corp.org - dpdk.git/commitdiff
test/crypto: fix authentication IV for ZUC SGL
authorCiara Power <ciara.power@intel.com>
Thu, 23 Jun 2022 14:31:42 +0000 (14:31 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 30 Jun 2022 04:54:21 +0000 (06:54 +0200)
The wireless operation for ZUC SGL tests was being passed NULL instead
of a pointer to the test data authentication IV, and IV length 0.
This is now corrected to use the IV from the test data.

Fixes: 11c5485bb276 ("test/crypto: add scatter-gather tests for IP and OOP")
Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test/test_cryptodev.c

index e6d8bcfb028212dbcf8683479472456d343bcd8a..bd7e232847d9d749c47863bc2100b7de72e48e99 100644 (file)
@@ -6562,7 +6562,7 @@ test_zuc_auth_cipher_sgl(const struct wireless_test_data *tdata,
        retval = create_wireless_algo_auth_cipher_operation(
                tdata->digest.data, tdata->digest.len,
                tdata->cipher_iv.data, tdata->cipher_iv.len,
-               NULL, 0,
+               tdata->auth_iv.data, tdata->auth_iv.len,
                (tdata->digest.offset_bytes == 0 ?
                (verify ? ciphertext_pad_len : plaintext_pad_len)
                        : tdata->digest.offset_bytes),