[10/18] crypto/cnxk: remove extra digest len check
Checks
Commit Message
When the flag ROC_SE_VALID_MAC_BUF is set, digest length will be
non-zero. Remove extra check in datapath.
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
drivers/crypto/cnxk/cnxk_se.h | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
@@ -680,11 +680,9 @@ cpt_enc_hmac_prep(uint32_t flags, uint64_t d_offs, uint64_t d_lens,
return -1;
}
}
- /* mac_data */
- if (mac_len) {
- i = fill_sg_comp_from_buf(scatter_comp, i,
- &fc_params->mac_buf);
- }
+
+ /* Digest buffer */
+ i = fill_sg_comp_from_buf(scatter_comp, i, &fc_params->mac_buf);
} else {
/* Output including mac */
size = outputlen - iv_len;