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:
parent
5f0a592083
commit
d937e87202
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user