From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 40109A0C4B for ; Thu, 11 Nov 2021 12:44:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 270E44115E; Thu, 11 Nov 2021 12:44:59 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 504EB40E2D; Thu, 11 Nov 2021 12:44:56 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1AB9WUTq017058; Thu, 11 Nov 2021 03:44:55 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=Um6UOT6/mPVT9KdrSmQoR9aai2l1p6pccJ8iIFTOO4A=; b=DQyQJ3o5y+uIN0p19+jlE4bee2VpQ1fYGpR6QZ0y8CxX5tkBiox5NJgi7gl7FFbw5K4L bU8kENjmVjuLyfjDn8uHWsmLqw+pJQPet150odxraFo2PPQFKZoRPoa1IV5p9nK3fma1 8OkYohCYyfBBIT+ta+8HBPTLmlaj82r7r1Am/Ucu4I365zbLJan9HtF87UCBS34BwRT9 zMvR1kAPv30jMBHKHhetHMqtzmFVVyC/YvJRiADVtt6cXS7PHAed1f0kriubXbsAS/mJ rSS4U6FvKvBMr2Qp+nPgs18RgHSZPJcoyrkKliHa3ENFChU+9YiIkgHhASWoPVE2wP8+ Ag== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3c90mt8hfg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 11 Nov 2021 03:44:55 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 11 Nov 2021 03:44:53 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 11 Nov 2021 03:44:53 -0800 Received: from HY-LT1002.marvell.com (unknown [10.193.70.144]) by maili.marvell.com (Postfix) with ESMTP id 5C5C35B6928; Thu, 11 Nov 2021 03:44:51 -0800 (PST) From: Anoob Joseph To: Akhil Goyal , Jerin Jacob CC: Anoob Joseph , Archana Muniganti , Tejasree Kondoj , , Subject: [PATCH] crypto/cnxk: fix kasumi input len calculation Date: Thu, 11 Nov 2021 17:14:29 +0530 Message-ID: <1636631069-795-1-git-send-email-anoobj@marvell.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: TmcvQ-gP16lJs07pbmRHU4uZQ7Kj8rXD X-Proofpoint-GUID: TmcvQ-gP16lJs07pbmRHU4uZQ7Kj8rXD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-11_03,2021-11-11_01,2020-04-07_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Fix kasumi input len calculation to consider encr_offset. Fixes: 546dff20a034 ("crypto/cnxk: add KASUMI decryption") Cc: ktejasree@marvell.com Signed-off-by: Anoob Joseph --- drivers/crypto/cnxk/cnxk_se.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/cnxk/cnxk_se.h b/drivers/crypto/cnxk/cnxk_se.h index e4e554e..37237de 100644 --- a/drivers/crypto/cnxk/cnxk_se.h +++ b/drivers/crypto/cnxk/cnxk_se.h @@ -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 */ -- 2.7.4