crypto/dpaax_sec: use AES-CTR initial counter as 1
authorVakul Garg <vakul.garg@nxp.com>
Wed, 6 Nov 2019 05:17:30 +0000 (10:47 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 8 Nov 2019 12:51:16 +0000 (13:51 +0100)
commit5906b0ad0f7550a14d6c4c7dbcb6919a5352007f
treef551d47a0df0849477e2be3c0dc8eaadc77b2a05
parentfd900d3853dadb71492aa3cd1f45316f6bf809b6
crypto/dpaax_sec: use AES-CTR initial counter as 1

As per RFC3686, the initial aes-ctr counter value should be '1' for use
in ipsec. The patches changes SEC descriptor for using correct counter
value. In addition, it drops a redundant parameter for passing IV while
creating the descriptor.

This patch adds changes for all NXP crypto PMDs

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/common/dpaax/caamflib/desc/algo.h
drivers/crypto/caam_jr/caam_jr.c
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
drivers/crypto/dpaa_sec/dpaa_sec.c