Skip to content

Commit

Permalink
common/cpt: fix KASUMI input length
Browse files Browse the repository at this point in the history
[ upstream commit d937e87 ]

Fix kasumi input len calculation to consider encr_offset.

Fixes: da39e3e ("common/cpt: support KASUMI")

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
  • Loading branch information
anoobj authored and cpaelzer committed Nov 30, 2021
1 parent 3cf7745 commit ffd8f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/common/cpt/cpt_ucode.h
Expand Up @@ -2310,7 +2310,7 @@ cpt_kasumi_dec_prep(uint64_t d_offs,
/* consider iv len */
encr_offset += iv_len;

inputlen = iv_len + (RTE_ALIGN(encr_data_len, 8) / 8);
inputlen = encr_offset + (RTE_ALIGN(encr_data_len, 8) / 8);
outputlen = inputlen;

/* save space for offset ctrl & iv */
Expand Down

0 comments on commit ffd8f8c

Please sign in to comment.