crypto/dpaax_sec: fix 18-bit PDCP cases with HFN override
authorAkhil Goyal <akhil.goyal@nxp.com>
Mon, 1 Jun 2020 17:17:45 +0000 (22:47 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 8 Jul 2020 16:16:17 +0000 (18:16 +0200)
commitf6ab96f13d7a23b39fb5135b64ed8e99c425c7a9
tree92acd9dec3db5220bd65c1ad7dc4448751c1c943
parentcb7842f23eadf33e7227ab0fcab2bb7f4dfb2eea
crypto/dpaax_sec: fix 18-bit PDCP cases with HFN override

In case of RTA_SEC_ERA = 8, where the length of shared desc
is large for some of PDCP cases, the descriptor buffer cannot
hold 2 extra words when HFN override is enabled. As a result,
the descriptor fails.

This patch converts one of the keys from immediate key to
reference key hence reducing the length of the descriptor.

Fixes: 2e4cbdb4b2c2 ("crypto/dpaax_sec: support PDCP U-Plane with integrity")
Cc: stable@dpdk.org
Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/common/dpaax/caamflib/desc/pdcp.h
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
drivers/crypto/dpaa_sec/dpaa_sec.c