Skip to content

Commit

Permalink
crypto/dpaa_sec: fix digest size
Browse files Browse the repository at this point in the history
[ upstream commit 841147ef973b415e8e21b6521e93361001ee2fc1 ]

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: c3e85bd ("crypto/dpaa_sec: add crypto driver for NXP DPAA platform")

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
  • Loading branch information
Gagandeep Singh authored and cpaelzer committed Jul 6, 2022
1 parent a2e44b1 commit 69e05f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/crypto/dpaa_sec/dpaa_sec.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright 2016 NXP
* Copyright 2016-2022 NXP
*
*/

Expand Down Expand Up @@ -207,7 +207,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;
struct rte_crypto_op *op;
Expand Down

0 comments on commit 69e05f6

Please sign in to comment.