Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/66656/?format=api
http://patchwork.dpdk.org/api/patches/66656/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200313180751.2068-2-arkadiuszx.kusztal@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20200313180751.2068-2-arkadiuszx.kusztal@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200313180751.2068-2-arkadiuszx.kusztal@intel.com", "date": "2020-03-13T18:07:51", "name": "[2/2] test: add crypto aes-gcm J0 test case", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "7fd0644431c956d537b2e80ae736350a6b91a4e5", "submitter": { "id": 452, "url": "http://patchwork.dpdk.org/api/people/452/?format=api", "name": "Arkadiusz Kusztal", "email": "arkadiuszx.kusztal@intel.com" }, "delegate": { "id": 6690, "url": "http://patchwork.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20200313180751.2068-2-arkadiuszx.kusztal@intel.com/mbox/", "series": [ { "id": 8908, "url": "http://patchwork.dpdk.org/api/series/8908/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=8908", "date": "2020-03-13T18:07:50", "name": "[1/2] crypto/qat: add aes-gcm J0 handling", "version": 1, "mbox": "http://patchwork.dpdk.org/series/8908/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/66656/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/66656/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 24F90A0576;\n\tFri, 13 Mar 2020 19:08:10 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 03CEA1C011;\n\tFri, 13 Mar 2020 19:08:10 +0100 (CET)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by dpdk.org (Postfix) with ESMTP id CC41E1AFF\n for <dev@dpdk.org>; Fri, 13 Mar 2020 19:08:08 +0100 (CET)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 13 Mar 2020 11:08:07 -0700", "from akusztax-mobl.ger.corp.intel.com ([10.104.121.22])\n by fmsmga002.fm.intel.com with ESMTP; 13 Mar 2020 11:08:05 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,549,1574150400\"; d=\"scan'208\";a=\"278317348\"", "From": "Arek Kusztal <arkadiuszx.kusztal@intel.com>", "To": "dev@dpdk.org", "Cc": "akhil.goyal@nxp.com, fiona.trahe@intel.com,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>", "Date": "Fri, 13 Mar 2020 19:07:51 +0100", "Message-Id": "<20200313180751.2068-2-arkadiuszx.kusztal@intel.com>", "X-Mailer": "git-send-email 2.19.1.windows.1", "In-Reply-To": "<20200313180751.2068-1-arkadiuszx.kusztal@intel.com>", "References": "<20200313180751.2068-1-arkadiuszx.kusztal@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 2/2] test: add crypto aes-gcm J0 test case", "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 <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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patch adds crypto J0 test case to AES-GCM\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n app/test/test_cryptodev.c | 28 ++++++++++++++--\n app/test/test_cryptodev.h | 1 +\n app/test/test_cryptodev_aead_test_vectors.h | 51 +++++++++++++++++++++++++++++\n 3 files changed, 77 insertions(+), 3 deletions(-)", "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 7b1ef5c..927c3b7 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -6885,9 +6885,15 @@ create_aead_operation(enum rte_crypto_aead_operation op,\n \t\tuint8_t *iv_ptr = rte_crypto_op_ctod_offset(ut_params->op,\n \t\t\t\tuint8_t *, IV_OFFSET);\n \n-\t\trte_memcpy(iv_ptr, tdata->iv.data, tdata->iv.len);\n-\t\tdebug_hexdump(stdout, \"iv:\", iv_ptr,\n-\t\t\ttdata->iv.len);\n+\t\tif (tdata->iv.len == 0) {\n+\t\t\trte_memcpy(iv_ptr, tdata->iv.data, AES_GCM_J0_LENGTH);\n+\t\t\tdebug_hexdump(stdout, \"iv:\", iv_ptr,\n+\t\t\t\tAES_GCM_J0_LENGTH);\n+\t\t} else {\n+\t\t\trte_memcpy(iv_ptr, tdata->iv.data, tdata->iv.len);\n+\t\t\tdebug_hexdump(stdout, \"iv:\", iv_ptr,\n+\t\t\t\ttdata->iv.len);\n+\t\t}\n \t}\n \n \t/* Append plaintext/ciphertext */\n@@ -7713,6 +7719,12 @@ test_AES_GCM_authenticated_encryption_test_case_8(void)\n }\n \n static int\n+test_AES_GCM_J0_authenticated_encryption_test_case_1(void)\n+{\n+\treturn test_authenticated_encryption(&gcm_J0_test_case_1);\n+}\n+\n+static int\n test_AES_GCM_auth_encryption_test_case_192_1(void)\n {\n \treturn test_authenticated_encryption(&gcm_test_case_192_1);\n@@ -8046,6 +8058,12 @@ test_AES_GCM_authenticated_decryption_test_case_8(void)\n }\n \n static int\n+test_AES_GCM_J0_authenticated_decryption_test_case_1(void)\n+{\n+\treturn test_authenticated_decryption(&gcm_J0_test_case_1);\n+}\n+\n+static int\n test_AES_GCM_auth_decryption_test_case_192_1(void)\n {\n \treturn test_authenticated_decryption(&gcm_test_case_192_1);\n@@ -11755,6 +11773,8 @@ static struct unit_test_suite cryptodev_testsuite = {\n \t\t\ttest_AES_GCM_authenticated_encryption_test_case_7),\n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\n \t\t\ttest_AES_GCM_authenticated_encryption_test_case_8),\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\ttest_AES_GCM_J0_authenticated_encryption_test_case_1),\n \n \t\t/** AES GCM Authenticated Decryption */\n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\n@@ -11773,6 +11793,8 @@ static struct unit_test_suite cryptodev_testsuite = {\n \t\t\ttest_AES_GCM_authenticated_decryption_test_case_7),\n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\n \t\t\ttest_AES_GCM_authenticated_decryption_test_case_8),\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\ttest_AES_GCM_J0_authenticated_decryption_test_case_1),\n \n \t\t/** AES GCM Authenticated Encryption 192 bits key */\n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\ndiff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h\nindex def304e..41542e0 100644\n--- a/app/test/test_cryptodev.h\n+++ b/app/test/test_cryptodev.h\n@@ -44,6 +44,7 @@\n #define TRUNCATED_DIGEST_BYTE_LENGTH_SHA512\t\t(32)\n \n #define MAXIMUM_IV_LENGTH\t\t\t\t(16)\n+#define AES_GCM_J0_LENGTH\t\t\t\t(16)\n \n #define IV_OFFSET\t\t\t(sizeof(struct rte_crypto_op) + \\\n \t\tsizeof(struct rte_crypto_sym_op) + DEFAULT_NUM_XFORMS * \\\ndiff --git a/app/test/test_cryptodev_aead_test_vectors.h b/app/test/test_cryptodev_aead_test_vectors.h\nindex a4a3a25..e62fdb2 100644\n--- a/app/test/test_cryptodev_aead_test_vectors.h\n+++ b/app/test/test_cryptodev_aead_test_vectors.h\n@@ -982,6 +982,57 @@ static const struct aead_test_data gcm_test_case_8 = {\n \t}\n };\n \n+static const struct aead_test_data gcm_J0_test_case_1 = {\n+\t.algo = RTE_CRYPTO_AEAD_AES_GCM,\n+\t.key = {\n+\t\t.data = {\n+\t\t\t0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,\n+\t\t\t0x6d, 0x6a, 0x8f, 0x94, 0x67, 0x30, 0x83, 0x08 },\n+\t\t.len = 16\n+\t},\n+\t.iv = {\n+\t\t.data = {\n+\t\t\t0xca, 0xfe, 0xba, 0xbe, 0xfa, 0xce, 0xdb, 0xad,\n+\t\t\t0xde, 0xca, 0xf8, 0x88, 0x00, 0x00, 0x00, 0x01 },\n+\t\t.len = 0\n+\t},\n+\t.aad = {\n+\t\t.data = gcm_aad_zero_text,\n+\t\t.len = 0\n+\t},\n+\t.plaintext = {\n+\t\t.data = {\n+\t\t\t0xd9, 0x31, 0x32, 0x25, 0xf8, 0x84, 0x06, 0xe5,\n+\t\t\t0xa5, 0x59, 0x09, 0xc5, 0xaf, 0xf5, 0x26, 0x9a,\n+\t\t\t0x86, 0xa7, 0xa9, 0x53, 0x15, 0x34, 0xf7, 0xda,\n+\t\t\t0x2e, 0x4c, 0x30, 0x3d, 0x8a, 0x31, 0x8a, 0x72,\n+\t\t\t0x1c, 0x3c, 0x0c, 0x95, 0x95, 0x68, 0x09, 0x53,\n+\t\t\t0x2f, 0xcf, 0x0e, 0x24, 0x49, 0xa6, 0xb5, 0x25,\n+\t\t\t0xb1, 0x6a, 0xed, 0xf5, 0xaa, 0x0d, 0xe6, 0x57,\n+\t\t\t0xba, 0x63, 0x7b, 0x39, 0x1a, 0xaf, 0xd2, 0x55 },\n+\t\t.len = 64\n+\t},\n+\t.ciphertext = {\n+\t\t.data = {\n+\t\t\t0x42, 0x83, 0x1e, 0xc2, 0x21, 0x77, 0x74, 0x24,\n+\t\t\t0x4b, 0x72, 0x21, 0xb7, 0x84, 0xd0, 0xd4, 0x9c,\n+\t\t\t0xe3, 0xaa, 0x21, 0x2f, 0x2c, 0x02, 0xa4, 0xe0,\n+\t\t\t0x35, 0xc1, 0x7e, 0x23, 0x29, 0xac, 0xa1, 0x2e,\n+\t\t\t0x21, 0xd5, 0x14, 0xb2, 0x54, 0x66, 0x93, 0x1c,\n+\t\t\t0x7d, 0x8f, 0x6a, 0x5a, 0xac, 0x84, 0xaa, 0x05,\n+\t\t\t0x1b, 0xa3, 0x0b, 0x39, 0x6a, 0x0a, 0xac, 0x97,\n+\t\t\t0x3d, 0x58, 0xe0, 0x91, 0x47, 0x3f, 0x59, 0x85\n+\t\t},\n+\t\t.len = 64\n+\t},\n+\t.auth_tag = {\n+\t\t.data = {\n+\t\t\t0x4d, 0x5c, 0x2a, 0xf3, 0x27, 0xcd, 0x64, 0xa6,\n+\t\t\t0x2c, 0xf3, 0x5a, 0xbd, 0x2b, 0xa6, 0xfa, 0xb4 },\n+\t\t.len = 16\n+\t}\n+};\n+\n /** AES-GCM-192 Test Vectors */\n static const struct aead_test_data gcm_test_case_192_1 = {\n \t.algo = RTE_CRYPTO_AEAD_AES_GCM,\n", "prefixes": [ "2/2" ] }{ "id": 66656, "url": "