]> git.droids-corp.org - dpdk.git/blobdiff - drivers/crypto/cnxk/cnxk_se.h
crypto/cnxk: fix KASUMI input length
[dpdk.git] / drivers / crypto / cnxk / cnxk_se.h
index e4e554e8b7d0a6684a42964e3c20d20a821cc783..37237de21ae15f4b35458e55e653c3d73eb11693 100644 (file)
@@ -1482,7 +1482,7 @@ cpt_kasumi_dec_prep(uint64_t d_offs, uint64_t d_lens,
        /* 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 */