common/cpt: fix KASUMI input length

Fix kasumi input len calculation to consider encr_offset.

Fixes: da39e3eccd ("common/cpt: support KASUMI")
Cc: stable@dpdk.org

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
This commit is contained in:
Anoob Joseph 2021-11-11 17:18:42 +05:30 committed by Akhil Goyal
parent 5f0a592083
commit d937e87202

View File

@ -2311,7 +2311,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 */