From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 19C934C88 for ; Thu, 28 Mar 2019 11:28:35 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2SAPlSc030157; Thu, 28 Mar 2019 03:28:35 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=n3YYFq4kR0hMWbLBO1Bgdx56EXWHgbvwZMmqsZREulA=; b=G4zuHo80riZMOWw5ZYbtIYn27uGEdWHEaFc8lk+BRs5b79pT3ITyf2wRSCipNDjjrByD th7XlnmO+4QWE/8JwpaRy7MmwLp0hgkku+PhEbKGI/jI1vH9nwfmZsXFHSfz31jz1JwN I/O1XY3jQGDXhFun7LtFJCVWZ0Lfizy5loUCfigCnqveMp2wxE88MWfnSz+5UBUAuUm5 hsvj4WsvU30taa2VhUSR+c7Ny3EXUP2xMPw03P5U3wL/ifXEhuMtvXhLG9xOZrN7P7M9 ElSHDpzPJ+5R1dXE/Hy2DEiNbQ6XZqWhAMH1ouxA/F/4nCE/7e5Qgd8iewZH2QShZLRx og== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2rgfn5a7bw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2019 03:28:34 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 28 Mar 2019 03:28:33 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (104.47.48.57) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 28 Mar 2019 03:28:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n3YYFq4kR0hMWbLBO1Bgdx56EXWHgbvwZMmqsZREulA=; b=SDYqlXf7Ypi8ftGUy82ePE34oePiCB0uJt2czhocWPdOORgix87hK6ktBlT7zw5We3WvWsij+NdcTCXrVmLOwCcCiODkksY493TrsAKDruejBxli71g5SoCyMjDqsnRDoXG2LDdDwyosllYi0kIlSrEghQvRfBjKmNJPcFWu4JQ= Received: from MN2PR18MB2542.namprd18.prod.outlook.com (20.179.82.221) by MN2PR18MB2687.namprd18.prod.outlook.com (20.179.84.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.15; Thu, 28 Mar 2019 10:28:32 +0000 Received: from MN2PR18MB2542.namprd18.prod.outlook.com ([fe80::ecb7:6a6e:f852:3d90]) by MN2PR18MB2542.namprd18.prod.outlook.com ([fe80::ecb7:6a6e:f852:3d90%6]) with mapi id 15.20.1750.014; Thu, 28 Mar 2019 10:28:32 +0000 From: Ayuj Verma To: "akhil.goyal@nxp.com" CC: "arkadiuszx.kusztal@intel.com" , "Shally Verma" , Sunila Sahu , "Kanaka Durga Kotamarthy" , Arvind Desai , "dev@dpdk.org" , Ayuj Verma Thread-Topic: [PATCH v3 2/4] crypto/openssl: set rsa private op feature flag Thread-Index: AQHU5VD9RgCz2HAz8UqXeA07JjorgQ== Date: Thu, 28 Mar 2019 10:28:32 +0000 Message-ID: <1553768834-19072-3-git-send-email-ayverma@marvell.com> References: <1553768834-19072-1-git-send-email-ayverma@marvell.com> In-Reply-To: <1553768834-19072-1-git-send-email-ayverma@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR01CA0150.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::20) To MN2PR18MB2542.namprd18.prod.outlook.com (2603:10b6:208:103::29) x-mailer: git-send-email 1.8.3.1 x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [49.200.218.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 833fd150-12b9-4a76-ddd4-08d6b3682019 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MN2PR18MB2687; x-ms-traffictypediagnostic: MN2PR18MB2687: x-microsoft-antispam-prvs: x-forefront-prvs: 0990C54589 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(136003)(346002)(39860400002)(189003)(199004)(36756003)(106356001)(25786009)(478600001)(71190400001)(316002)(6506007)(4326008)(386003)(55236004)(54906003)(4720700003)(14454004)(71200400001)(107886003)(6116002)(2616005)(76176011)(3846002)(97736004)(26005)(102836004)(11346002)(66066001)(186003)(486006)(476003)(446003)(6916009)(52116002)(2906002)(2501003)(99286004)(53936002)(305945005)(5640700003)(6512007)(50226002)(4744005)(8936002)(81156014)(6436002)(256004)(6486002)(81166006)(8676002)(7736002)(105586002)(5660300002)(2351001)(14444005)(68736007)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB2687; H:MN2PR18MB2542.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: as9e50RXA+hdJFIRnryKcKC351UbL+cC5M/ezEmS3Y+N+P8MRz695sDBtxrKCh8NirsiK8ohcY45eTbtfN7sYxGpd1LVcE5fwMKtHpYj5GWuDbA2guy8+2LNixMQaQP1zDZ2lVaAOzH3cY54thL1OiFI1Bgz4OzwUlp2nmlfY2IKydjH96fkYGAfWo16UzgWnpq14U1ZPmzNHr5lZD1trrh1beUp8NWX+MKLqumjITGPjE3tP54rM2KkscWgieKhhmBA5XWshTlCS76uSecDVvVWu1UlqwKsBolTrkdZVvxtUlWXBhPHfq8nlWSt6cQANK41NtnQOEdEdDzjO9Fbht/EIxaFvRyZJSizADI/zbJwcplcAiWpyt+PppAD6egVSW7xIynfH7BPrp+awm+OxcZqJ6WFmdcPCbKjiO6EeCA= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 833fd150-12b9-4a76-ddd4-08d6b3682019 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2019 10:28:32.3505 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB2687 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-28_05:, , signatures=0 Subject: [dpdk-dev] [PATCH v3 2/4] crypto/openssl: set rsa private op feature flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2019 10:28:36 -0000 openssl PMD support RSA private key operation using both qt and exp key type. Set rsa key type feature flag Signed-off-by: Ayuj Verma Signed-off-by: Shally Verma --- drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/open= ssl/rte_openssl_pmd.c index 93cd73e..6504959 100644 --- a/drivers/crypto/openssl/rte_openssl_pmd.c +++ b/drivers/crypto/openssl/rte_openssl_pmd.c @@ -2125,7 +2125,9 @@ static void HMAC_CTX_free(HMAC_CTX *ctx) RTE_CRYPTODEV_FF_CPU_AESNI | RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT | RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT | - RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO; + RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO | + RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP | + RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT; =20 /* Set vector instructions mode supported */ internals =3D dev->data->dev_private; --=20 1.8.3.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 51E0EA067F for ; Thu, 28 Mar 2019 11:28:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F2B704C8D; Thu, 28 Mar 2019 11:28:37 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 19C934C88 for ; Thu, 28 Mar 2019 11:28:35 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2SAPlSc030157; Thu, 28 Mar 2019 03:28:35 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=n3YYFq4kR0hMWbLBO1Bgdx56EXWHgbvwZMmqsZREulA=; b=G4zuHo80riZMOWw5ZYbtIYn27uGEdWHEaFc8lk+BRs5b79pT3ITyf2wRSCipNDjjrByD th7XlnmO+4QWE/8JwpaRy7MmwLp0hgkku+PhEbKGI/jI1vH9nwfmZsXFHSfz31jz1JwN I/O1XY3jQGDXhFun7LtFJCVWZ0Lfizy5loUCfigCnqveMp2wxE88MWfnSz+5UBUAuUm5 hsvj4WsvU30taa2VhUSR+c7Ny3EXUP2xMPw03P5U3wL/ifXEhuMtvXhLG9xOZrN7P7M9 ElSHDpzPJ+5R1dXE/Hy2DEiNbQ6XZqWhAMH1ouxA/F/4nCE/7e5Qgd8iewZH2QShZLRx og== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2rgfn5a7bw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2019 03:28:34 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 28 Mar 2019 03:28:33 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (104.47.48.57) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 28 Mar 2019 03:28:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n3YYFq4kR0hMWbLBO1Bgdx56EXWHgbvwZMmqsZREulA=; b=SDYqlXf7Ypi8ftGUy82ePE34oePiCB0uJt2czhocWPdOORgix87hK6ktBlT7zw5We3WvWsij+NdcTCXrVmLOwCcCiODkksY493TrsAKDruejBxli71g5SoCyMjDqsnRDoXG2LDdDwyosllYi0kIlSrEghQvRfBjKmNJPcFWu4JQ= Received: from MN2PR18MB2542.namprd18.prod.outlook.com (20.179.82.221) by MN2PR18MB2687.namprd18.prod.outlook.com (20.179.84.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.15; Thu, 28 Mar 2019 10:28:32 +0000 Received: from MN2PR18MB2542.namprd18.prod.outlook.com ([fe80::ecb7:6a6e:f852:3d90]) by MN2PR18MB2542.namprd18.prod.outlook.com ([fe80::ecb7:6a6e:f852:3d90%6]) with mapi id 15.20.1750.014; Thu, 28 Mar 2019 10:28:32 +0000 From: Ayuj Verma To: "akhil.goyal@nxp.com" CC: "arkadiuszx.kusztal@intel.com" , "Shally Verma" , Sunila Sahu , "Kanaka Durga Kotamarthy" , Arvind Desai , "dev@dpdk.org" , Ayuj Verma Thread-Topic: [PATCH v3 2/4] crypto/openssl: set rsa private op feature flag Thread-Index: AQHU5VD9RgCz2HAz8UqXeA07JjorgQ== Date: Thu, 28 Mar 2019 10:28:32 +0000 Message-ID: <1553768834-19072-3-git-send-email-ayverma@marvell.com> References: <1553768834-19072-1-git-send-email-ayverma@marvell.com> In-Reply-To: <1553768834-19072-1-git-send-email-ayverma@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR01CA0150.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::20) To MN2PR18MB2542.namprd18.prod.outlook.com (2603:10b6:208:103::29) x-mailer: git-send-email 1.8.3.1 x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [49.200.218.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 833fd150-12b9-4a76-ddd4-08d6b3682019 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MN2PR18MB2687; x-ms-traffictypediagnostic: MN2PR18MB2687: x-microsoft-antispam-prvs: x-forefront-prvs: 0990C54589 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(136003)(346002)(39860400002)(189003)(199004)(36756003)(106356001)(25786009)(478600001)(71190400001)(316002)(6506007)(4326008)(386003)(55236004)(54906003)(4720700003)(14454004)(71200400001)(107886003)(6116002)(2616005)(76176011)(3846002)(97736004)(26005)(102836004)(11346002)(66066001)(186003)(486006)(476003)(446003)(6916009)(52116002)(2906002)(2501003)(99286004)(53936002)(305945005)(5640700003)(6512007)(50226002)(4744005)(8936002)(81156014)(6436002)(256004)(6486002)(81166006)(8676002)(7736002)(105586002)(5660300002)(2351001)(14444005)(68736007)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB2687; H:MN2PR18MB2542.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: as9e50RXA+hdJFIRnryKcKC351UbL+cC5M/ezEmS3Y+N+P8MRz695sDBtxrKCh8NirsiK8ohcY45eTbtfN7sYxGpd1LVcE5fwMKtHpYj5GWuDbA2guy8+2LNixMQaQP1zDZ2lVaAOzH3cY54thL1OiFI1Bgz4OzwUlp2nmlfY2IKydjH96fkYGAfWo16UzgWnpq14U1ZPmzNHr5lZD1trrh1beUp8NWX+MKLqumjITGPjE3tP54rM2KkscWgieKhhmBA5XWshTlCS76uSecDVvVWu1UlqwKsBolTrkdZVvxtUlWXBhPHfq8nlWSt6cQANK41NtnQOEdEdDzjO9Fbht/EIxaFvRyZJSizADI/zbJwcplcAiWpyt+PppAD6egVSW7xIynfH7BPrp+awm+OxcZqJ6WFmdcPCbKjiO6EeCA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 833fd150-12b9-4a76-ddd4-08d6b3682019 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2019 10:28:32.3505 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB2687 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-28_05:, , signatures=0 Subject: [dpdk-dev] [PATCH v3 2/4] crypto/openssl: set rsa private op feature flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190328102832.gq_bCL9zWBMEOXEowh53xzbuonVRrQf1SCYgx35s3tI@z> openssl PMD support RSA private key operation using both qt and exp key type. Set rsa key type feature flag Signed-off-by: Ayuj Verma Signed-off-by: Shally Verma --- drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/open= ssl/rte_openssl_pmd.c index 93cd73e..6504959 100644 --- a/drivers/crypto/openssl/rte_openssl_pmd.c +++ b/drivers/crypto/openssl/rte_openssl_pmd.c @@ -2125,7 +2125,9 @@ static void HMAC_CTX_free(HMAC_CTX *ctx) RTE_CRYPTODEV_FF_CPU_AESNI | RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT | RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT | - RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO; + RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO | + RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP | + RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT; =20 /* Set vector instructions mode supported */ internals =3D dev->data->dev_private; --=20 1.8.3.1