From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 04B90A2EFC for ; Thu, 19 Sep 2019 13:54:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9C4581EF74; Thu, 19 Sep 2019 13:54:23 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 4F8E11EF7B; Thu, 19 Sep 2019 13:54:13 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8JBpKaL003306; Thu, 19 Sep 2019 04:54:12 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=z5t0v50La6Dr1TQn3WTAUncK942FiAb8tZs0uB3eFAQ=; b=WPtlEiRWog9pPG4YmOmevYzQcigkRCvSYbKJmnSIr7WeClxtXsQcs2gLccYUlV8ntE2n GACoq0KuYh+HS/YqEmVKvsEVhm2OlesX+xFjpRNybtq/yHuKvwbN2/Ay8gcuMESN5gFe jHWlYIWVdHU8XYjLl5tx0qhMCWj4vfPPTja6NxQjaCzRriSZVNEteIe9d2vLWFAbyrWy zyt9SQoColvnn1bKsgMHjxjlQZ9V26ROmRQYZPg2tLpu5EL+9KOlV4O6Xq2DoA8c5PMi 6mdUkPKk657T6hHAuiNyXm8ZHTQpbxUWnrSEcZHPJD+VRicJeFAcaDPkAsyozM6XliDp Qw== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 2v3vcdtr46-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 19 Sep 2019 04:54:12 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 19 Sep 2019 04:54:11 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 19 Sep 2019 04:54:11 -0700 Received: from vvenus375.il.marvell.com (unknown [10.5.120.75]) by maili.marvell.com (Postfix) with ESMTP id 563373F703F; Thu, 19 Sep 2019 04:54:09 -0700 (PDT) From: To: CC: , , , , Date: Thu, 19 Sep 2019 15:12:28 +0300 Message-ID: <20190919121232.4864-5-michaelsh@marvell.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190919121232.4864-1-michaelsh@marvell.com> References: <20190919121232.4864-1-michaelsh@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-19_04:2019-09-18,2019-09-19 signatures=0 Subject: [dpdk-stable] [PATCH 4/8] examples/fips_validation: move digest after cipher text X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "stable" From: Michael Shamis Fix of GCM FIPS bug: ICV was not copied after the crypto text in decryption operation so driver failed to check authentication in GCM mode. Signed-off-by: Michael Shamis --- examples/fips_validation/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c index 193f36ed7..6313ebf66 100644 --- a/examples/fips_validation/main.c +++ b/examples/fips_validation/main.c @@ -636,6 +636,10 @@ prepare_aead_op(void) } memcpy(ct, vec.ct.val, vec.ct.len); + + /* keep digest after crypto text */ + memcpy(ct + vec.ct.len, vec.aead.digest.val, + vec.aead.digest.len); sym->aead.data.length = vec.ct.len; sym->aead.digest.data = vec.aead.digest.val; sym->aead.digest.phys_addr = rte_malloc_virt2iova( -- 2.23.0