[v2] test/crypto: fix IPsec AES CCM test vector
Checks
Commit Message
Set IPsec AES-CCM test vector IV length to 11
instead of 12 as it includes only 3B salt and
8B per packet IV.
Fixes: d314299950de ("test/crypto: add AES-CCM vectors")
Cc: stable@dpdk.org
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
---
app/test/test_cryptodev_security_ipsec_test_vectors.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
> Subject: [PATCH v2] test/crypto: fix IPsec AES CCM test vector
>
> Set IPsec AES-CCM test vector IV length to 11
> instead of 12 as it includes only 3B salt and
> 8B per packet IV.
>
> Fixes: d314299950de ("test/crypto: add AES-CCM vectors")
> Cc: stable@dpdk.org
>
> Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
Applied to dpdk-next-crypto
Thanks.
@@ -417,7 +417,8 @@ struct ipsec_test_data pkt_aes_256_ccm = {
.op = RTE_CRYPTO_AEAD_OP_ENCRYPT,
.algo = RTE_CRYPTO_AEAD_AES_CCM,
.key.length = 32,
- .iv.length = 12,
+ /* IV includes 3B salt and 8B per packet IV */
+ .iv.length = 11,
.iv.offset = IV_OFFSET,
.digest_length = 16,
.aad_length = 12,