Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/54181/?format=api
http://patches.dpdk.org/api/patches/54181/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190603145048.2596-6-damianx.nowak@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": "<20190603145048.2596-6-damianx.nowak@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190603145048.2596-6-damianx.nowak@intel.com", "date": "2019-06-03T14:50:44", "name": "[5/9] cryptodev: document usage of digest-appended operations", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "33a6b73583e818299fa3f2b5f08b463953271fcb", "submitter": { "id": 1184, "url": "http://patches.dpdk.org/api/people/1184/?format=api", "name": "Damian Nowak", "email": "damianx.nowak@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/20190603145048.2596-6-damianx.nowak@intel.com/mbox/", "series": [ { "id": 4865, "url": "http://patches.dpdk.org/api/series/4865/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4865", "date": "2019-06-03T14:50:39", "name": "add QAT support for digest encrypted", "version": 1, "mbox": "http://patches.dpdk.org/series/4865/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/54181/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/54181/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 47FFD1B9B5;\n\tMon, 3 Jun 2019 16:54:29 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id E6A7A559A\n\tfor <dev@dpdk.org>; Mon, 3 Jun 2019 16:54:15 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t03 Jun 2019 07:54:15 -0700", "from damiannx-mobl1.ger.corp.intel.com ([10.103.104.100])\n\tby fmsmga001.fm.intel.com with ESMTP; 03 Jun 2019 07:54:14 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Nowak <damianx.nowak@intel.com>", "To": "dev@dpdk.org", "Cc": "fiona.trahe@intel.com, arkadiuszx.kusztal@intel.com,\n\tDamian Nowak <damianx.nowak@intel.com>", "Date": "Mon, 3 Jun 2019 16:50:44 +0200", "Message-Id": "<20190603145048.2596-6-damianx.nowak@intel.com>", "X-Mailer": "git-send-email 2.21.0.windows.1", "In-Reply-To": "<20190603145048.2596-1-damianx.nowak@intel.com>", "References": "<20190603145048.2596-1-damianx.nowak@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 5/9] cryptodev: document usage of digest-appended\n\toperations", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Damian Nowak <damianx.nowak@intel.com>\n\nThis patch explains what are the conditions\nand how to use digest appended for auth-cipher\noperations.\n\nSigned-off-by: Damian Nowak <damianx.nowak@intel.com>\n---\n lib/librte_cryptodev/rte_crypto_sym.h | 43 +++++++++++++++++++++++++++++++++++\n 1 file changed, 43 insertions(+)", "diff": "diff --git a/lib/librte_cryptodev/rte_crypto_sym.h b/lib/librte_cryptodev/rte_crypto_sym.h\nindex c80e90e..b211bf5 100644\n--- a/lib/librte_cryptodev/rte_crypto_sym.h\n+++ b/lib/librte_cryptodev/rte_crypto_sym.h\n@@ -662,6 +662,49 @@ struct rte_crypto_sym_op {\n \t\t\t\t\t * physically contiguous memory at this\n \t\t\t\t\t * location.\n \t\t\t\t\t *\n+\t\t\t\t\t * @note\n+\t\t\t\t\t * Digest can be generated, appended to\n+\t\t\t\t\t * the end of raw data and encrypted\n+\t\t\t\t\t * together using chained digest\n+\t\t\t\t\t * generation\n+\t\t\t\t\t * (@ref RTE_CRYPTO_AUTH_OP_GENERATE)\n+\t\t\t\t\t * and encryption\n+\t\t\t\t\t * (@ref RTE_CRYPTO_CIPHER_OP_ENCRYPT)\n+\t\t\t\t\t * xforms. Similarly, authentication\n+\t\t\t\t\t * of the raw data against appended,\n+\t\t\t\t\t * decrypted digest, can be performed\n+\t\t\t\t\t * using decryption\n+\t\t\t\t\t * (@ref RTE_CRYPTO_CIPHER_OP_DECRYPT)\n+\t\t\t\t\t * and digest verification\n+\t\t\t\t\t * (@ref RTE_CRYPTO_AUTH_OP_VERIFY)\n+\t\t\t\t\t * chained xforms.\n+\t\t\t\t\t * To perform those operations, a few\n+\t\t\t\t\t * additional conditions must be met:\n+\t\t\t\t\t * - caller must allocate at least\n+\t\t\t\t\t * digest_length of memory at the end of\n+\t\t\t\t\t * source and (in case of out-of-place\n+\t\t\t\t\t * operations) destination buffer; those\n+\t\t\t\t\t * buffers can be linear or split using\n+\t\t\t\t\t * scatter-gather lists,\n+\t\t\t\t\t * - digest data pointer must point to\n+\t\t\t\t\t * the end of source or (in case of\n+\t\t\t\t\t * out-of-place operations) destination\n+\t\t\t\t\t * data, which is pointer to the raw\n+\t\t\t\t\t * data buffer + auth.data.offset +\n+\t\t\t\t\t * auth.data.length,\n+\t\t\t\t\t * - cipher.data.offset +\n+\t\t\t\t\t * cipher.data.length must be greater\n+\t\t\t\t\t * than auth.data.offset +\n+\t\t\t\t\t * auth.data.length and is typically\n+\t\t\t\t\t * equal to auth.data.offset +\n+\t\t\t\t\t * auth.data.length + digest_length.\n+\t\t\t\t\t *\n+\t\t\t\t\t * Note, that for security reasons, it\n+\t\t\t\t\t * is PMDs' responsibility to not\n+\t\t\t\t\t * leave an unencrypted digest in any\n+\t\t\t\t\t * buffer after performing auth-cipher\n+\t\t\t\t\t * operations.\n+\t\t\t\t\t *\n \t\t\t\t\t * For digest generation, the digest result\n \t\t\t\t\t * will overwrite any data at this location.\n \t\t\t\t\t *\n", "prefixes": [ "5/9" ] }{ "id": 54181, "url": "