Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/111834/?format=api
http://patches.dpdk.org/api/patches/111834/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220525155324.9288-11-arkadiuszx.kusztal@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20220525155324.9288-11-arkadiuszx.kusztal@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220525155324.9288-11-arkadiuszx.kusztal@intel.com", "date": "2022-05-25T15:53:20", "name": "[v2,10/14] cryptodev: clarify usage of rsa padding hash", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "8c68b8abc2c4bc6624248a19cddddeff67679e3d", "submitter": { "id": 452, "url": "http://patches.dpdk.org/api/people/452/?format=api", "name": "Arkadiusz Kusztal", "email": "arkadiuszx.kusztal@intel.com" }, "delegate": { "id": 6690, "url": "http://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220525155324.9288-11-arkadiuszx.kusztal@intel.com/mbox/", "series": [ { "id": 23159, "url": "http://patches.dpdk.org/api/series/23159/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23159", "date": "2022-05-25T15:53:10", "name": "cryptodev: rsa, dh, ecdh changes", "version": 2, "mbox": "http://patches.dpdk.org/series/23159/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/111834/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/111834/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 1D8F0A0555;\n\tWed, 25 May 2022 19:04:35 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 290724280B;\n\tWed, 25 May 2022 19:04:31 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 2169142B8C\n for <dev@dpdk.org>; Wed, 25 May 2022 19:04:28 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 25 May 2022 10:01:26 -0700", "from silpixa00399302.ir.intel.com ([10.237.214.136])\n by FMSMGA003.fm.intel.com with ESMTP; 25 May 2022 10:01:25 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1653498269; x=1685034269;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=Am5cbHZp/SPLr8fG/XtcskTmKvyvzBkhypk5392INIk=;\n b=TjcvSBidXVGn4d8fC6WKO8FGp+DR3QPZAI8TfTyfS4im7wtGRIm6YdJ7\n mlvi2PMSfOtk9LiRr0peRcx8/21cesn2xYk+Pom/S+V3dx7CHbd2B/mJM\n XApxSvjIfVrbvf2vSKoOAuLSIXIUodl8vIlhe7fgQ9CHw8Z7m/Mr5viOB\n pV5a0+ibPi/zxmHYNXLB20jjUh3v1DRGjnQCOafA+TH4IYo3jdVkEg1Zx\n 2JTryZCkp5SJPQSeoLwbRO9bkF1ZzfW/lXCE+mtpAlP0RculGxDAAad3X\n sR7LUbBtuATf1AzM/6p2vuFUpnBjRzuIeKkOXfqUvSr8zy4ADsz+cH7Gh A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10358\"; a=\"273596483\"", "E=Sophos;i=\"5.91,250,1647327600\"; d=\"scan'208\";a=\"273596483\"", "E=Sophos;i=\"5.91,250,1647327600\"; d=\"scan'208\";a=\"664502403\"" ], "X-ExtLoop1": "1", "From": "Arek Kusztal <arkadiuszx.kusztal@intel.com>", "To": "dev@dpdk.org", "Cc": "gakhil@marvell.com, roy.fan.zhang@intel.com,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>", "Subject": "[PATCH v2 10/14] cryptodev: clarify usage of rsa padding hash", "Date": "Wed, 25 May 2022 16:53:20 +0100", "Message-Id": "<20220525155324.9288-11-arkadiuszx.kusztal@intel.com>", "X-Mailer": "git-send-email 2.13.6", "In-Reply-To": "<20220525155324.9288-1-arkadiuszx.kusztal@intel.com>", "References": "<20220525155324.9288-1-arkadiuszx.kusztal@intel.com>", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "- Clarified usage of RSA padding hash.\nIt was not specified how to use hash for PKCS1_5\npadding. This could lead to incorrect implementation.\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n lib/cryptodev/rte_crypto_asym.h | 25 +++++++++++++++++++++----\n 1 file changed, 21 insertions(+), 4 deletions(-)", "diff": "diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h\nindex 1a57c0c532..1758aaa875 100644\n--- a/lib/cryptodev/rte_crypto_asym.h\n+++ b/lib/cryptodev/rte_crypto_asym.h\n@@ -371,10 +371,27 @@ struct rte_crypto_rsa_op_param {\n \t/**< RSA padding scheme to be used for transform */\n \n \tenum rte_crypto_auth_algorithm md;\n-\t/**< Hash algorithm to be used for data hash if padding\n-\t * scheme is either OAEP or PSS. Valid hash algorithms\n-\t * are:\n-\t * MD5, SHA1, SHA224, SHA256, SHA384, SHA512\n+\t/**<\n+\t * RSA padding hash function\n+\t *\n+\t * When a specific padding type is selected, the following rule apply:\n+\t * - RTE_CRYPTO_RSA_PADDING_NONE:\n+\t * This field is ignored by the PMD\n+\t *\n+\t * - RTE_CRYPTO_RSA_PADDING_PKCS1_5:\n+\t * When signing operation this field is used to determine value\n+\t * of the DigestInfo structure, therefore specifying which algorithm\n+\t * was used to create the message digest.\n+\t * When doing encryption/decryption this field is ignored for this\n+\t * padding type.\n+\t *\n+\t * - RTE_CRYPTO_RSA_PADDING_OAEP\n+\t * This field shall be set with the hash algorithm used\n+\t * in the padding scheme\n+\t *\n+\t * - RTE_CRYPTO_RSA_PADDING_PSS\n+\t * This field shall be set with the hash algorithm used\n+\t * in the padding scheme (and to create the input message digest)\n \t */\n \n \tenum rte_crypto_auth_algorithm mgf1md;\n", "prefixes": [ "v2", "10/14" ] }{ "id": 111834, "url": "