Skip to content

Commit

Permalink
test/crypto: fix IV in some vectors
Browse files Browse the repository at this point in the history
[ upstream commit af7be52316e8a94f4fba75e644fc1c0fb9531424 ]

SNOW3G and ZUC algorithms require non-zero length IVs.

Fixes: c6c267a ("test/crypto: add mixed encypted-digest")

Signed-off-by: Brian Dooley <brian.dooley@intel.com>
Acked-by: Ciara Power <ciara.power@intel.com>
  • Loading branch information
bdoole1 authored and bluca committed Oct 18, 2023
1 parent 029efa3 commit 61142ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/test/test_cryptodev_mixed_test_vectors.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,10 @@ struct mixed_cipher_auth_test_data auth_aes_cmac_cipher_snow_test_case_1 = {
},
.cipher_iv = {
.data = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
},
.len = 0,
.len = 16,
},
.cipher = {
.len_bits = 516 << 3,
Expand Down Expand Up @@ -723,8 +725,10 @@ struct mixed_cipher_auth_test_data auth_aes_cmac_cipher_zuc_test_case_1 = {
},
.cipher_iv = {
.data = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
},
.len = 0,
.len = 16,
},
.cipher = {
.len_bits = 516 << 3,
Expand Down

0 comments on commit 61142ae

Please sign in to comment.