From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM05-CO1-obe.outbound.protection.outlook.com (mail-eopbgr720074.outbound.protection.outlook.com [40.107.72.74]) by dpdk.org (Postfix) with ESMTP id B7C5B1B4D2 for ; Thu, 11 Oct 2018 15:43:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ezjwYP5tJkh9i2khex+UZWFgnyuzj5d1Y07InL9dxrI=; b=aDf/gYyCxqG0upXAKIqrsssXU4BBBAbn07Vy0c0iqdr94CfCJ+u7bocS9jYMH/cfXWcQ7Ge8GLEm6WgpCWBm36EXpIuGQXU+74kfUIlpge3NQDkxoHX+iM+ZxFNUQEQKKWqLYvF9Hg5m8iI0LJk7YsZzbFnGRW8nuj8yP8MHNhE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Akash.Saxena@cavium.com; Received: from hyd1asaxena-dt.caveonetworks.com (115.113.156.2) by BN6PR07MB2772.namprd07.prod.outlook.com (2603:10b6:404:3f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.22; Thu, 11 Oct 2018 13:43:47 +0000 From: Akash Saxena To: pablo.de.lara.guarch@intel.com Cc: dev@dpdk.org, akhil.goyal@nxp.com, shally.verma@caviumnetworks.com, ayuj.verma@caviumnetworks.com, Akash Saxena Date: Thu, 11 Oct 2018 19:13:09 +0530 Message-Id: <1539265391-9606-1-git-send-email-akash.saxena@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BMXPR01CA0024.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::34) To BN6PR07MB2772.namprd07.prod.outlook.com (2603:10b6:404:3f::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c2a535ff-6a27-4251-a719-08d62f7f92da X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:BN6PR07MB2772; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB2772; 3:5+9Zo5/SQipilbzXeV32vupc85DjApJxpaKvCeYfPyUaCEPhjzZu8if2/nspGTa7xfzfafd+vA5iZmk9/W8jJcesMk+stgKAvpQWebFuxrQhAbza4+/J5AnO8SlBFA9EdcymwTe70vS3RO9naLkVndhsxA3OcwhCE8jcLdIpNb5+sW3liDEAbRP9DrHBuG/NwVg5D1MrlHM/uwBxettWYfynQjHaUCCxgtoMcoqZpve9Riw49+ev9Lcnh+r7gT9j; 25:UgKwJRxZZlRU/qfsE/LoUoBsJ4nRxkwX6ea+KX7mc+gqvNd9888YehjDF7uZc4tMSUc7D1UlkGr4XAOlXOaFuC9xkQRlRUqzvExdCDSMQFFgGYBMv+++EzeOtkxGIomeNUTmGiz8ihcBwy2TZbGPyrAgR1E4iBETUv/QXPZxLBRcn2060dzrMYJYBJt2QEiS9gONz8Far2LRpy+LDCdkrL4kXV7U+kJB1m2WvXsVUf+OhoKKZE7IxTmLRNVHXFE1pcNtSw+KHbiEtRqD5Lyt6CUpULIUgChtHfWqjnckcwlmZReS3u37ofzyyUSUhbf7dF2oxudQbiJV925uiwwthQ==; 31:0UD6+TjCxYgOhCftg3j3eXzpIL50Tj3Qlle7a7twevQJ536rI9WyBlzBMB7Km/SS9O11QyH1/yaTiNZneM+Oqp9jUgCBNZu376JYzxnOuZ/Y/N7RoUkvTvJD09AtMgwfwIXVGZztrB4AjdhUtnmb/3gQiZXVIt/Utq6dwjga5t/g1S0JWp4BE/28H8XoXbn2r4QQIniiJ2QT/1DB9YFJdy/svPhOUpMqv0ae1F9c94g= X-MS-TrafficTypeDiagnostic: BN6PR07MB2772: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB2772; 20:fThlsbEfF3oixgnJ9Itcof6OHnvxNnFI2PxuqLhs7x1ONaRwsPuR27C7eviOpcvB/FPoEhv5GN7T8iZBnRY3/b4ZPDx/9whq7c2R/iIHxC5hhjqtauJ5/njMSEB/hDxGOiqluBXw3xrL4I/+lczpFEkB4M4UvF+b1sUiO2bRHAb/I1rzoQUnMB9C7YeFqphHVwmcp2r+hn2V4hlHtFgnvqY/zA+j62hhHsVbpy+N4OqWBLNJXornnTZq6kLAe42To8IEPncyr46Ecs94F1vgRWrD8Fm5TLVm/NCjoJJwnxabem83N6FaxBWwO9OoI69ENuZ/cqqealOYbyw7E0Bz2ZR5Nnh5CxUxxEfrT+/qlWTd8p1mfZjiooYkfXij0qurtlAZMD0opYdhW9egK5+7xbzKP6avt2jsqPf9V5UDeEF4tcj/nOacTqRPBCkssleIb9TXe70W5uyJiCU8K5b4fnNhWhGyDa2kE8q1d0JZpb9o17agThqVGZpgaWr/L/TB/EczA4txOPBEBy1oWlDlXGVjxwUloyfX/DzgdXsnaPCKdvdiV+wtbgo1D8gL/XVlPXSE70dpNEzR+QHp+tlJHKMZVWYkruhDmCUJST+2vgk=; 4:mCbfQBBGNlyT+rVxBfsYAEr9IjrW5ZTE72q/X823zDKM/GinZolxzd2bRiiYqNo70roZVRubtXB9kW9U5Fu38bPJOlo5XY7kSeItOi4lR9BEYcs3RqWyKqTgPSV+hoYZCd6zDie9jngPkQsTebMdUfqfCSYKjGOqi/GghCGGqUbk7Kt/DVOQMAiwyJSvPd5lg14JPzbxRv3kNUqsUgOYC4H4ijqQyZvKYoYuwJjframGBxNwzzl0LDgfAz8szj34jQHX45nCwFsvgefaVf/oEA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(149066)(150057)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051); SRVR:BN6PR07MB2772; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB2772; X-Forefront-PRVS: 08220FA8D6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(366004)(346002)(396003)(136003)(189003)(199004)(6916009)(68736007)(6116002)(3846002)(316002)(4326008)(50466002)(50226002)(107886003)(16526019)(44832011)(476003)(105586002)(2616005)(81156014)(97736004)(486006)(8936002)(2361001)(26005)(956004)(186003)(106356001)(53416004)(2351001)(42882007)(81166006)(8676002)(23676004)(305945005)(14444005)(7736002)(52116002)(6486002)(2870700001)(66066001)(36756003)(15650500001)(47776003)(25786009)(6506007)(478600001)(386003)(6512007)(5660300001)(53936002)(2906002)(6666004)(69596002)(72206003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB2772; H:hyd1asaxena-dt.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjA3TUIyNzcyOzIzOlVBekZKUlJVQmlrcmVZSC8rMXhkbTl5TVA4?= =?utf-8?B?Z1VWekFZQm56UHN6RWIrNlVwK2hXWUwyNC9tT1VoanRwejc0clN1SW8veFZI?= =?utf-8?B?bGRNNkY4NVZ5VkQ5bXhvVTRKcnpLRFcyL3dOVFZORXR3V1VZNnJsb3Q1UWdZ?= =?utf-8?B?bnRGYllSWnNSd3I0RGJkZTBMdXRvWmJQbFlWMVVrWUh1M05DcEhQa0RlMlZ4?= =?utf-8?B?b3hmWE1Ja2E5Mk50KzFnd3NaSVkrNkxKZkpLV2Ix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Rn2UrukfTllc8xEJXiXV4g/Om+CHns8LPWCqlchp21HEKYVEu4tDTDr4= X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB2772; 6:Koi+COCCAji7jVOkc5EqugxsUXO+8MSJltNVmwoG4TEEPLyhpD+UEQmyT5vsrbAvSTChId4h/6v4B+Oi1QU69WjR3z/AzzvJqoVW0f+AyZWdA3UjYvav67LPo0lZFVHzjqgZZ13WzEvc/JEUQl8jy6/ApCNUVyPYzDmq06RPpX2uh85Q07Uxti4LEmuw+s1nNRwhUkA2WW2+kea5FIEtzBFlll+BbR4lbqpRZZFKsw+mAf8mXZwpICic/BB8HgexVHtvNwGjbM2bloZVMd+uhDR5TEjIQFLabedANf0cRIFz0JINgY37ilNS6XAVAMB8q+YMzcOv7nMsP2WAFnuoC6wg21CIBDFuZWwyOI4SFBVrSSKgIgNDjIOvCVEr9457CTJdIG1z/CWSWK3LigFdC0ER8UPn8HO6/uz+dNW/nUjc80rU++JG9f32vWzwM+05i9QkN2H7mQYZbnOwL51cEQ==; 5:x79wnHK8OwASjs/K9zqC2wf9bQq/cXLS6ydjDuwoWPhkQ3DdImfsTi3HmBEl2LiB52Y1OLIuvGhhxGFNgy8r1N9NCFPILn3qQHIi1vPdRbvyEMTeCRVwkP4YGQ52NBqYfl2Hlbq3lTb4Vu4XS61lrZZj9pvFxcokTWjMzE+CTaw=; 7:3/vvnTJwBKN6iDHMyBjzhZWrZ/zPwi+YsYvxjKRJFiJwxFdhKhyoTLCmT2u7G/Q5N7oiupR/vHbhOWJZA3nmt/4JbKvMzuy2pkopQjc/DLo4J2VxcIop+ioOazkbY760vREVQ+wCy7mKRrsTcUBdhF0wglEyRyE59xBocgtkvB2V+lzVZJ9IDSMpirHQm7SmybdSYr40KULoG7oEmsdFT9fZVCSiCt5b1XLvJmzyVx7rBmHuAl3Ei3ASismdDYOP SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2018 13:43:47.3544 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c2a535ff-6a27-4251-a719-08d62f7f92da X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB2772 Subject: [dpdk-dev] [PATCH v1 0/2] Changes for RSA verify operation in OpenSSL PMD and unit tests 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, 11 Oct 2018 13:43:52 -0000 In lib cryptodev, RSA verify operation inputs plain message text and corresponding signature and expected to return RTE_CRYPTO_OP_STATUS_SUCCESS/FAILURE on a signature match/mismatch. Current OpenSSL PMD RSA verify implementation overrides application passed sign input by decrypted output which isn't expected. This patch addresses this issue in OpenSSL PMD. Now, OpenSSL PMD use tmp buffer to store sign operation decrypted output and test application to only check for STATUS_SUCCESS/FAILURE. Signed-off-by: Ayuj Verma Signed-off-by: Akash Saxena Signed-off-by: Shally Verma --- Akash Saxena (2): crypto/openssl: changes for RSA verify operation test/crypto: check for operation status only at output of RSA verify crypto operation drivers/crypto/openssl/rte_openssl_pmd.c | 20 +++++++++++++------- test/test/test_cryptodev_asym.c | 9 ++++++--- 2 files changed, 19 insertions(+), 10 deletions(-) -- 2.7.4