Skip to contentSkip to conversation

test/crypto: fix authentication IV for zuc SGL

PATCH Applied Ciara Power 3 participants 3 messages Jun 23, 2022 – Jun 28, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/crypto: fix authentication IV for zuc SGL

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")
---
 app/test/test_cryptodev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test/test_cryptodev.c +1 -1
index 1cac76a64a..d08f786324 100644
@@ -6563,7 +6563,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),
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw

Hi Ciara,

Quoted 10 lines

-----Original Message-----
From: Power, Ciara <[email protected]>
Sent: Thursday, June 23, 2022 4:32 PM
To: Akhil Goyal <[email protected]>; Zhang, Roy Fan <[email protected]>
Cc: [email protected]; Ji, Kai <[email protected]>; De Lara Guarch, Pablo <[email protected]>; Power, Ciara <[email protected]>; [email protected]
Subject: [PATCH] test/crypto: fix authentication IV for zuc SGL

Quoted 8 lines

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")