]> git.droids-corp.org - dpdk.git/blobdiff - drivers/common/cpt/cpt_ucode.h
common/cpt: fix KASUMI input length
[dpdk.git] / drivers / common / cpt / cpt_ucode.h
index 006411cd895570acf883eec48905a174eb66ee80..e015cf66a11fdeb6c7302134156291b58c0e3c16 100644 (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 */