common/dpaax/caamflib: fix IV for short MAC-I in SNOW3G
authorGagandeep Singh <g.singh@nxp.com>
Wed, 8 Sep 2021 06:59:51 +0000 (12:29 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 8 Sep 2021 10:10:43 +0000 (12:10 +0200)
commitc0182d6b752e3fe320f8f8e3db6256cd21234d9a
treeafa7b5c25ca1322793e59b257842de23a0ccc645
parent81eb760d22077b4b3f639c3297d2f6f7c71951fd
common/dpaax/caamflib: fix IV for short MAC-I in SNOW3G

The logic was incorrectly doing conditional swap. It need to
be bit swap always.

Fixes: 73a24060cd70 ("crypto/dpaa2_sec: add sample PDCP descriptor APIs")
Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/common/dpaax/caamflib/desc/pdcp.h