From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id BA5EE1B40F for ; Wed, 6 Feb 2019 12:16:33 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x16BGAQn010433; Wed, 6 Feb 2019 03:16:33 -0800 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=N/2jGElvwLb0gF/qdA7MCF5Xd+GJ20oIMuBvYpfWrXI=; b=R0lXMRKEdh0zbPBqZ2dIrtajtaMbpCERI3baOVpbEocsb8izZ7cQg0Q616x8z58vbXlQ 2bJCEw2y1YC8XJKJL+FGlY+6Gk9VAs2iWLGe4lNUWjLQu/V7cpth6B3bfd1nJLq6bf3t j8qAxitKs41sXyLefjg4NSuxzOPTofeTPyK0AniGV5Tlmmj93oKrzNwtEUZA3zQ7OFFt 2+LjASNg8/oquF7GBtGDOfUNNCficc1judgXL/xjfFIQjNvObhVyu29bAgb1Hh8U3u6j NznbhpXXGIlHlkSuQUwQt2mOmTVxRLbmaVnL6JxWMC6MXpUtzhVH+9BwI5eUtMhZCJCk dw== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2qfc17keem-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 06 Feb 2019 03:16:32 -0800 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; Wed, 6 Feb 2019 03:16:31 -0800 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (104.47.46.53) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 6 Feb 2019 03:16:31 -0800 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=N/2jGElvwLb0gF/qdA7MCF5Xd+GJ20oIMuBvYpfWrXI=; b=YiIRZ5ELH7osFKjsTYy5cIT0Q+gW8hVe7GsQWWYpizt3TXfLGeCZuZa0Zql1hzyHiOqjh9ZTgjTTryrRsFBmydt1/MuhKxcLLv18Q2T5IrhivKJ4Lh4sihQJVtN1hOiYcGCW8Eohovhvu4oja4jm+etHQKm39ywjfuEwl8hscvI= Received: from DM6PR18MB2908.namprd18.prod.outlook.com (20.179.50.12) by DM6PR18MB2378.namprd18.prod.outlook.com (20.179.71.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.19; Wed, 6 Feb 2019 11:16:29 +0000 Received: from DM6PR18MB2908.namprd18.prod.outlook.com ([fe80::d176:5cef:c5d7:b9ae]) by DM6PR18MB2908.namprd18.prod.outlook.com ([fe80::d176:5cef:c5d7:b9ae%5]) with mapi id 15.20.1601.016; Wed, 6 Feb 2019 11:16:29 +0000 From: Ayuj Verma To: "pablo.de.lara.guarch@intel.com" CC: "fiona.trahe@intel.com" , "dev@dpdk.org" , Shally Verma , Sunila Sahu , Kanaka Durga Kotamarthy , Arvind Desai , Ayuj Verma Thread-Topic: [PATCH 1/3] lib/cryptodev: add crt sign and decrypt ops Thread-Index: AQHUvg1oxIBi6bxHmEWd59Zju17cyw== Date: Wed, 6 Feb 2019 11:16:29 +0000 Message-ID: <20190206111405.30860-2-ayverma@marvell.com> References: <20190206111405.30860-1-ayverma@marvell.com> In-Reply-To: <20190206111405.30860-1-ayverma@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0030.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::16) To DM6PR18MB2908.namprd18.prod.outlook.com (2603:10b6:5:168::12) x-mailer: git-send-email 2.20.0 x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [111.93.218.67] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM6PR18MB2378; 20:jVYkf6WhY7uTR5j1z4dwH0szfDf5iB/2KTpa0+6xKO1+OHSplYAz6R/r7o02yp/WUlaQbC38a7ZbQ57U7iEvxnjqoLx0GmAgOPGyN6Z4dR+/Y2jIGAm2X2VK/tk92cmggX0PARwDtZRCTpChwxWEL3rSDs/6QKnS5vKHUh1P59o= x-ms-office365-filtering-correlation-id: 6e657fce-38b3-4d73-f332-08d68c248a7a x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020); SRVR:DM6PR18MB2378; x-ms-traffictypediagnostic: DM6PR18MB2378: x-microsoft-antispam-prvs: x-forefront-prvs: 0940A19703 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(39860400002)(396003)(136003)(366004)(189003)(199004)(4326008)(106356001)(97736004)(81166006)(81156014)(105586002)(14444005)(8676002)(14454004)(53936002)(1076003)(316002)(102836004)(76176011)(186003)(478600001)(2906002)(66066001)(25786009)(50226002)(68736007)(486006)(8936002)(78486014)(2501003)(26005)(5640700003)(86362001)(99286004)(6486002)(52116002)(6512007)(54906003)(6436002)(2616005)(446003)(2351001)(476003)(6506007)(6916009)(386003)(7736002)(71190400001)(71200400001)(305945005)(256004)(107886003)(3846002)(6116002)(36756003)(11346002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR18MB2378; H:DM6PR18MB2908.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: GZX3lIR6rDg/uta/hS/YrurPoInbRS65AP/Eccq68h7GJYWWoOV+UaQoykE7q/I6zHUO1ZGx/Bw4VzVcYQOgSrZPHHD4dDX/xzJIDbCI02l7U+NnxQVFL9a+bxOddhXePLltx4Sq+DZljbO/x2MANu06fiNC09/dU40hGwg1elanSAyLHUsC6k544juH/6x6rElle0XZQW+/6Rs815SWbcetI7sIg8ADtoNta1Ib3FPtB33hDdh5K3z3FzJbZxMpP+7krpBYV6enFlxqSj8vjs5zOxTyEpZls+7F+4UGZLMm9yFbctoucBAwsfJGTWJoCWiFVAavzGCgxlCrN/3G9Sq6p9GMHO9Z+q1SbffkpxvO8De4rEYn9uTSLYNq4UpaQzY6v1gVvt5g0gk+abZUfZt5imgFBRPvWFuB/Fp52rk= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 6e657fce-38b3-4d73-f332-08d68c248a7a X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2019 11:16:26.3168 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB2378 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-06_07:, , signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=944 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902060090 Subject: [dpdk-dev] [PATCH 1/3] lib/cryptodev: add crt sign and decrypt ops 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: Wed, 06 Feb 2019 11:16:34 -0000 Add CRT variant of RTE_CRYPTO_ASYM_SIGN and DECRYPT operation, to perform RSA Sign and Decrypt using CRT quintuple keys only PMD would reflect its capability to support these operations using its op_type mask. App should query RSA xform capability API to check if specific op_type is supported, thus call operation with relevant key type. Signed-off-by: Ayuj Verma Signed-off-by: Shally Verma --- lib/librte_cryptodev/rte_crypto_asym.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_cryptodev/rte_crypto_asym.h b/lib/librte_cryptodev/= rte_crypto_asym.h index 5e185b2dd..2c1f95eb6 100644 --- a/lib/librte_cryptodev/rte_crypto_asym.h +++ b/lib/librte_cryptodev/rte_crypto_asym.h @@ -91,8 +91,16 @@ enum rte_crypto_asym_op_type { /**< Asymmetric Encrypt operation */ RTE_CRYPTO_ASYM_OP_DECRYPT, /**< Asymmetric Decrypt operation */ + RTE_CRYPTO_ASYM_OP_DECRYPT_CRT, + /**< RSA private key decrypt operation + * using CRT quintuple keys + */ RTE_CRYPTO_ASYM_OP_SIGN, /**< Signature Generation operation */ + RTE_CRYPTO_ASYM_OP_SIGN_CRT, + /**< RSA signature (private key encrypt) + * generation using CRT quintuple keys + */ RTE_CRYPTO_ASYM_OP_VERIFY, /**< Signature Verification operation */ RTE_CRYPTO_ASYM_OP_PRIVATE_KEY_GENERATE, --=20 2.20.0