]> git.droids-corp.org - dpdk.git/commitdiff
crypto/dpaa_sec: fix digest size
authorGagandeep Singh <g.singh@nxp.com>
Thu, 17 Mar 2022 08:55:58 +0000 (14:25 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 28 Apr 2022 06:54:50 +0000 (08:54 +0200)
DPAA crypto driver can support 64 bytes size digest size
for SHA512-HMAC.
This patch changes the value of macro max supported digest size to
64.

Fixes: c3e85bdcc6e6 ("crypto/dpaa_sec: add crypto driver for NXP DPAA platform")
Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
drivers/crypto/dpaa_sec/dpaa_sec.h

index 78906878285d479457dad56fd8ad295e351bf148..b3f2258ead0fba436d07bea0dbb87ed1bcbfba3b 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  *
- *   Copyright 2016-2021 NXP
+ *   Copyright 2016-2022 NXP
  *
  */
 
@@ -231,7 +231,7 @@ struct dpaa_sec_job {
        struct qm_sg_entry sg[MAX_JOB_SG_ENTRIES];
 };
 
-#define DPAA_MAX_NB_MAX_DIGEST 32
+#define DPAA_MAX_NB_MAX_DIGEST 64
 struct dpaa_sec_op_ctx {
        struct dpaa_sec_job job;
        union {