]> git.droids-corp.org - dpdk.git/commit
crypto/cnxk: fix IV length for ZUC-256
authorVidya Sagar Velumuri <vvelumuri@marvell.com>
Wed, 3 Nov 2021 13:18:53 +0000 (13:18 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 4 Nov 2021 18:46:27 +0000 (19:46 +0100)
commit89b78a2e3df9855378febd2beaa053c35d8ad241
treec6aab25dec95c4050f0291984a68f7e75524d15a
parent66a8a26f311fa66d2ee26a3a3060b52d4f06ae4b
crypto/cnxk: fix IV length for ZUC-256

Fix supported IV length for ZUC 256
Add support in capability for 4 byte mac len for ZUC 256
Pack the last 8 bytes of IV to 6 bytes by ignoring the 2 msb bits of
each byte.

Fixes: 29742632ac9e ("crypto/cnxk: support ZUC with 256-bit key")
Signed-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>
drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c
drivers/crypto/cnxk/cnxk_se.h