Ciara Power 3025fe2910 test/crypto: fix ZUC vector IV format
Some authentication and cipher IV formats were not following the spec [1].

For ZUC128 cipher IV, an 8 byte block is repeated,
with the last 3 bytes of each being 0x0.
IV[4] and IV[12] must have the last 2 bits set to 0.

Auth IVs must also have repeated bytes with the last 3 bytes
containing 0x0 in each 8 byte block.
IV[4] and IV[12] must have the last 3 bits set to 0.
IV[8] and IV[14] may have a flipped bit based on direction.

[1] https://www.gsma.com/security/wp-content/uploads/2019/05/EEA3_EIA3_specification_v1_8.pdf

Fixes: a81a81850fb1 ("test/crypto: add ZUC test cases for QAT")
Fixes: b1c1df46878d ("test/crypto: add ZUC test cases for auth-cipher")
Cc: stable@dpdk.org

Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Tejasree Kondoj <ktejasree@marvell.com>
2022-06-30 06:54:21 +02:00
..
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2022-06-24 14:51:09 +02:00
2021-11-10 11:42:34 +01:00
2022-02-12 12:07:48 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2021-10-25 09:42:38 +02:00
2022-02-27 18:57:45 +01:00
2021-10-22 18:15:38 +02:00
2019-07-06 10:32:34 +02:00
2022-06-24 14:51:09 +02:00
2022-06-23 16:32:00 +02:00
2022-06-21 20:04:50 +02:00
2022-02-08 14:19:40 +01:00
2022-02-12 12:07:48 +01:00
2022-02-12 12:07:48 +01:00
2020-02-05 14:37:41 +01:00
2022-02-12 12:07:48 +01:00
2021-10-26 19:59:26 +02:00
2019-02-26 15:29:27 +01:00
2020-10-16 22:26:41 +02:00
2021-05-20 23:10:22 +02:00
2022-02-12 12:07:48 +01:00
2019-02-26 15:29:27 +01:00
2022-06-07 13:33:14 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2021-09-28 08:46:03 +02:00
2022-02-12 12:07:48 +01:00