Skip to content

Commit

Permalink
test/crypto: fix authentication IV for ZUC SGL
Browse files Browse the repository at this point in the history
[ upstream commit 5d170ccea5edb84eabff2c0e9b4b1df822615009 ]

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: 11c5485 ("test/crypto: add scatter-gather tests for IP and OOP")

Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
  • Loading branch information
ciarapow authored and cpaelzer committed Jul 7, 2022
1 parent ccdd69c commit 614f126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/test/test_cryptodev.c
Expand Up @@ -5918,7 +5918,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),
Expand Down

0 comments on commit 614f126

Please sign in to comment.