get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/128847/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 128847,
    "url": "http://patchwork.dpdk.org/api/patches/128847/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230620103235.539282-3-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": "<20230620103235.539282-3-arkadiuszx.kusztal@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230620103235.539282-3-arkadiuszx.kusztal@intel.com",
    "date": "2023-06-20T10:32:34",
    "name": "[v4,2/3] app/test: add modexp and modinv functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "679a979a6caa2dd84acfee4627398490ed59e6df",
    "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/20230620103235.539282-3-arkadiuszx.kusztal@intel.com/mbox/",
    "series": [
        {
            "id": 28580,
            "url": "http://patchwork.dpdk.org/api/series/28580/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28580",
            "date": "2023-06-20T10:32:32",
            "name": "Replace obsolote test cases.",
            "version": 4,
            "mbox": "http://patchwork.dpdk.org/series/28580/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/128847/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/128847/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 1145E42D07;\n\tTue, 20 Jun 2023 12:32:58 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D596A42D31;\n\tTue, 20 Jun 2023 12:32:50 +0200 (CEST)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 6C82942D16\n for <dev@dpdk.org>; Tue, 20 Jun 2023 12:32:48 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Jun 2023 03:32:46 -0700",
            "from silpixa00401012.ir.intel.com ([10.243.23.125])\n by orsmga005.jf.intel.com with ESMTP; 20 Jun 2023 03:32:45 -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=1687257168; x=1718793168;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=9IwCTMBTwTKFTqzvFjf4YV3ADnlP5yUYfBwZQSzQHfw=;\n b=YiR9wsIufpEETBNj/lU6Uh2DD+39VQv0goVreKo9RHcAYWagLvh02N/K\n GRGrf2Jq8YnpOPwSRSP3jc5V0bUTdKF+y15/fLsaYBqrx+MLhy1qSrVuT\n OKW5RNmFSU36icJPqDZ4Yc4cvG/Vf+5x3hmUX89s/zPHc3zW9+xAjBfK0\n VBi60A8qe20vBL0P6EtsDRb5LKyk95Hg/RoBL5QSiRq2MfYhICbqgCIJr\n +IlDQaHgtsH9nBkWCg6Cgd8droqeNnibXlhm2kV9p3dzLGu5/O2psDsK+\n KQw5HlsKAOl3zn+bq3XhNXAiSGw2ImqKykQWVonLHus36BXr1JPUjZgIX g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10746\"; a=\"423489048\"",
            "E=Sophos;i=\"6.00,256,1681196400\"; d=\"scan'208\";a=\"423489048\"",
            "E=McAfee;i=\"6600,9927,10746\"; a=\"888204797\"",
            "E=Sophos;i=\"6.00,256,1681196400\"; d=\"scan'208\";a=\"888204797\""
        ],
        "X-ExtLoop1": "1",
        "From": "Arkadiusz Kusztal <arkadiuszx.kusztal@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "gakhil@marvell.com, kai.ji@intel.com, ciara.power@intel.com,\n Arkadiusz Kusztal <arkadiuszx.kusztal@intel.com>",
        "Subject": "[PATCH v4 2/3] app/test: add modexp and modinv functions",
        "Date": "Tue, 20 Jun 2023 10:32:34 +0000",
        "Message-Id": "<20230620103235.539282-3-arkadiuszx.kusztal@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230620103235.539282-1-arkadiuszx.kusztal@intel.com>",
        "References": "<20230620103235.539282-1-arkadiuszx.kusztal@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "Added modular exponentiation and modular inverse\ntests to the asymmetric crypto testsuite.\n\nSigned-off-by: Arkadiusz Kusztal <arkadiuszx.kusztal@intel.com>\n---\n app/test/test_cryptodev_asym.c             | 152 +++++++++++++++++++--\n app/test/test_cryptodev_mod_test_vectors.h | 123 +++++++++++++++++\n 2 files changed, 263 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c\nindex 537973387e..c9a5816250 100644\n--- a/app/test/test_cryptodev_asym.c\n+++ b/app/test/test_cryptodev_asym.c\n@@ -33,28 +33,23 @@\n #endif\n #define ASYM_TEST_MSG_LEN 256\n #define TEST_VECTOR_SIZE 256\n+#define DEQ_TIMEOUT 50\n \n static int gbl_driver_id;\n-struct crypto_testsuite_params_asym {\n+static struct crypto_testsuite_params_asym {\n \tstruct rte_mempool *op_mpool;\n \tstruct rte_mempool *session_mpool;\n \tstruct rte_cryptodev_config conf;\n \tstruct rte_cryptodev_qp_conf qp_conf;\n \tuint8_t valid_devs[RTE_CRYPTO_MAX_DEVS];\n \tuint8_t valid_dev_count;\n-};\n+} testsuite_params, *params = &testsuite_params;\n \n-struct crypto_unittest_params {\n+static struct ut_args {\n \tvoid *sess;\n \tstruct rte_crypto_op *op;\n-};\n-\n-union test_case_structure {\n-\tstruct modex_test_data modex;\n-\tstruct modinv_test_data modinv;\n-};\n-\n-static struct crypto_testsuite_params_asym testsuite_params = { NULL };\n+\tstruct rte_crypto_op *result_op;\n+} _args, *self = &_args;\n \n static int\n queue_ops_rsa_sign_verify(void *sess)\n@@ -525,9 +520,15 @@ static int\n ut_setup_asym(void)\n {\n \tstruct crypto_testsuite_params_asym *ts_params = &testsuite_params;\n-\n \tuint16_t qp_id;\n \n+\tmemset(self, 0, sizeof(*self));\n+\tself->op = rte_crypto_op_alloc(params->op_mpool,\n+\t\t\tRTE_CRYPTO_OP_TYPE_ASYMMETRIC);\n+\tTEST_ASSERT_NOT_NULL(self->op,\n+\t\t\"Failed to allocate asymmetric crypto operation struct\"\n+\t);\n+\n \t/* Reconfigure device to default parameters */\n \tts_params->conf.socket_id = SOCKET_ID_ANY;\n \n@@ -560,6 +561,15 @@ ut_teardown_asym(void)\n {\n \tstruct crypto_testsuite_params_asym *ts_params = &testsuite_params;\n \tstruct rte_cryptodev_stats stats;\n+\tuint8_t dev_id = ts_params->valid_devs[0];\n+\n+\tif (self->sess != NULL)\n+\t\trte_cryptodev_asym_session_free(dev_id, self->sess);\n+\tif (self->op != NULL)\n+\t\trte_crypto_op_free(self->op);\n+\tself->sess = NULL;\n+\tself->op = NULL;\n+\tself->result_op = NULL;\n \n \trte_cryptodev_stats_get(ts_params->valid_devs[0], &stats);\n \n@@ -2371,6 +2381,115 @@ test_sm2_dec(void)\n \treturn status;\n };\n \n+static int send_one(void)\n+{\n+\tint ticks = 0;\n+\n+\tif (rte_cryptodev_enqueue_burst(params->valid_devs[0], 0,\n+\t\t\t&self->op, 1) != 1) {\n+\t\tRTE_LOG(ERR, USER1,\n+\t\t\t\"line %u FAILED: Error sending packet for operation on device %d\",\n+\t\t\t__LINE__, params->valid_devs[0]);\n+\t\treturn TEST_FAILED;\n+\t}\n+\twhile (rte_cryptodev_dequeue_burst(params->valid_devs[0], 0,\n+\t\t\t&self->result_op, 1) == 0) {\n+\t\trte_delay_ms(1);\n+\t\tticks++;\n+\t\tif (ticks >= DEQ_TIMEOUT) {\n+\t\t\tRTE_LOG(ERR, USER1,\n+\t\t\t\t\"line %u FAILED: Cannot dequeue the crypto op on device %d\",\n+\t\t\t\t__LINE__, params->valid_devs[0]);\n+\t\t\treturn TEST_FAILED;\n+\t\t}\n+\t}\n+\tTEST_ASSERT_NOT_NULL(self->result_op,\n+\t\t\"Failed to process asym crypto op\");\n+\tTEST_ASSERT_SUCCESS(self->result_op->status,\n+\t\t\"Failed to process asym crypto op, error status received\");\n+\treturn TEST_SUCCESS;\n+}\n+\n+static int\n+modular_exponentiation(const void *test_data)\n+{\n+\tconst struct modex_test_data *vector = test_data;\n+\tuint8_t input[TEST_DATA_SIZE] = { 0 };\n+\tuint8_t exponent[TEST_DATA_SIZE] = { 0 };\n+\tuint8_t modulus[TEST_DATA_SIZE] = { 0 };\n+\tuint8_t result[TEST_DATA_SIZE] = { 0 };\n+\tstruct rte_crypto_asym_xform xform = { };\n+\tconst uint8_t dev_id = params->valid_devs[0];\n+\n+\tmemcpy(input, vector->base.data, vector->base.len);\n+\tmemcpy(exponent, vector->exponent.data, vector->exponent.len);\n+\tmemcpy(modulus, vector->modulus.data, vector->modulus.len);\n+\n+\txform.xform_type = RTE_CRYPTO_ASYM_XFORM_MODEX;\n+\txform.modex.exponent.data = exponent;\n+\txform.modex.exponent.length = vector->exponent.len;\n+\txform.modex.modulus.data = modulus;\n+\txform.modex.modulus.length = vector->modulus.len;\n+\n+\tif (rte_cryptodev_asym_session_create(dev_id, &xform,\n+\t\t\tparams->session_mpool, &self->sess) < 0) {\n+\t\tRTE_LOG(ERR, USER1, \"line %u FAILED: Session creation failed\",\n+\t\t\t__LINE__);\n+\t\treturn TEST_FAILED;\n+\t}\n+\trte_crypto_op_attach_asym_session(self->op, self->sess);\n+\tself->op->asym->modex.base.data = input;\n+\tself->op->asym->modex.base.length = vector->base.len;\n+\tself->op->asym->modex.result.data = result;\n+\n+\tTEST_ASSERT_SUCCESS(send_one(),\n+\t\t\"Failed to process crypto op\");\n+\tTEST_ASSERT_BUFFERS_ARE_EQUAL(vector->reminder.data,\n+\t\t\tself->result_op->asym->modex.result.data,\n+\t\t\tself->result_op->asym->modex.result.length,\n+\t\t\t\"operation verification failed\\n\");\n+\n+\treturn TEST_SUCCESS;\n+}\n+\n+static int\n+modular_multiplicative_inverse(const void *test_data)\n+{\n+\tconst struct modinv_test_data *vector = test_data;\n+\tuint8_t input[TEST_DATA_SIZE] = { 0 };\n+\tuint8_t modulus[TEST_DATA_SIZE] = { 0 };\n+\tuint8_t result[TEST_DATA_SIZE] = { 0 };\n+\tstruct rte_crypto_asym_xform xform = { };\n+\tconst uint8_t dev_id = params->valid_devs[0];\n+\n+\tmemcpy(input, vector->base.data, vector->base.len);\n+\tmemcpy(modulus, vector->modulus.data, vector->modulus.len);\n+\txform.xform_type = RTE_CRYPTO_ASYM_XFORM_MODINV;\n+\txform.modex.modulus.data = modulus;\n+\txform.modex.modulus.length = vector->modulus.len;\n+\tif (rte_cryptodev_asym_session_create(dev_id, &xform,\n+\t\t\tparams->session_mpool, &self->sess) < 0) {\n+\t\tRTE_LOG(ERR, USER1, \"line %u FAILED: Session creation failed\",\n+\t\t\t__LINE__);\n+\t\treturn TEST_FAILED;\n+\t}\n+\trte_crypto_op_attach_asym_session(self->op, self->sess);\n+\n+\tself->op->asym->modinv.base.data = input;\n+\tself->op->asym->modinv.base.length = vector->base.len;\n+\tself->op->asym->modinv.result.data = result;\n+\tself->op->asym->modinv.result.length = vector->modulus.len;\n+\n+\tTEST_ASSERT_SUCCESS(send_one(),\n+\t\t\"Failed to process crypto op\");\n+\tTEST_ASSERT_BUFFERS_ARE_EQUAL(vector->inverse.data,\n+\t\tself->result_op->asym->modinv.result.data,\n+\t\tself->result_op->asym->modinv.result.length,\n+\t\t\"Incorrect reminder\\n\");\n+\n+\treturn TEST_SUCCESS;\n+}\n+\n static struct unit_test_suite cryptodev_openssl_asym_testsuite  = {\n \t.suite_name = \"Crypto Device OPENSSL ASYM Unit Test Suite\",\n \t.setup = testsuite_setup,\n@@ -2402,6 +2521,15 @@ static struct unit_test_suite cryptodev_qat_asym_testsuite  = {\n \t.setup = testsuite_setup,\n \t.teardown = testsuite_teardown,\n \t.unit_test_cases = {\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"Modular Exponentiation (mod=128, base=20, exp=3, res=128)\",\n+\t\t\tut_setup_asym, ut_teardown_asym,\n+\t\t\tmodular_exponentiation, &modex_test_case_m128_b20_e3),\n+\t\t/* Modular Multiplicative Inverse */\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"Modular Inverse (mod=128, base=20, exp=3, inv=128)\",\n+\t\t\tut_setup_asym, ut_teardown_asym,\n+\t\t\tmodular_multiplicative_inverse, &modinv_test_case),\n \t\tTEST_CASES_END() /**< NULL terminate unit test array */\n \t}\n };\ndiff --git a/app/test/test_cryptodev_mod_test_vectors.h b/app/test/test_cryptodev_mod_test_vectors.h\nindex 7763377110..0ffc958037 100644\n--- a/app/test/test_cryptodev_mod_test_vectors.h\n+++ b/app/test/test_cryptodev_mod_test_vectors.h\n@@ -47,6 +47,129 @@ struct modinv_test_data {\n \tuint16_t result_len;\n };\n \n+/* ModExp #1 */\n+static const struct\n+modex_test_data modex_test_case_m128_b20_e3 = {\n+\t.description =\n+\t\t\"Modular Exponentiation (mod=128, base=20, exp=3, res=128)\",\n+\t.xform_type = RTE_CRYPTO_ASYM_XFORM_MODEX,\n+\t.base = {\n+\t\t.data = {\n+\t\t\t0xF8, 0xBA, 0x1A, 0x55, 0xD0, 0x2F, 0x85,\n+\t\t\t0xAE, 0x96, 0x7B, 0xB6, 0x2F, 0xB6, 0xCD,\n+\t\t\t0xA8, 0xEB, 0x7E, 0x78, 0xA0, 0x50\n+\t\t},\n+\t\t.len = 20\n+\t},\n+\t.exponent = {\n+\t\t.data = {\n+\t\t\t0x01, 0x00, 0x01\n+\t\t},\n+\t\t.len = 3\n+\t},\n+\t.reminder = {\n+\t\t.data = {\n+\t\t\t0x2C, 0x60, 0x75, 0x45, 0x98, 0x9D, 0xE0, 0x72,\n+\t\t\t0xA0, 0x9D, 0x3A, 0x9E, 0x03, 0x38, 0x73, 0x3C,\n+\t\t\t0x31, 0x83, 0x04, 0xFE, 0x75, 0x43, 0xE6, 0x17,\n+\t\t\t0x5C, 0x01, 0x29, 0x51, 0x69, 0x33, 0x62, 0x2D,\n+\t\t\t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0x3f, 0x27, 0x6e,\n+\t\t\t0x3b, 0x34, 0x91, 0x60, 0x14, 0xb9, 0xaa, 0x72,\n+\t\t\t0xfd, 0xa3, 0x64, 0xd2, 0x03, 0xa7, 0x53, 0x87,\n+\t\t\t0x9e, 0x88, 0x0b, 0xc1, 0x14, 0x93, 0x1a, 0x62,\n+\t\t\t0xff, 0xb1, 0x5d, 0x74, 0xcd, 0x59, 0x63, 0x18,\n+\t\t\t0x11, 0x3d, 0x4f, 0xba, 0x75, 0xd4, 0x33, 0x4e,\n+\t\t\t0x23, 0x6b, 0x7b, 0x57, 0x44, 0xe1, 0xd3, 0x03,\n+\t\t\t0x13, 0xa6, 0xf0, 0x8b, 0x60, 0xb0, 0x9e, 0xee,\n+\t\t\t0x75, 0x08, 0x9d, 0x71, 0x63, 0x13, 0xcb, 0xa6,\n+\t\t\t0x81, 0x92, 0x14, 0x03, 0x22, 0x2d, 0xde, 0x55\n+\t\t},\n+\t\t.len = 128\n+\t},\n+\t.result_len = 128\n+};\n+\n+/* ModInv #1 */\n+static const struct\n+modinv_test_data modinv_test_case = {\n+\t.description = \"Modular Inverse (mod=128, base=20, exp=3, inv=128)\",\n+\t.xform_type = RTE_CRYPTO_ASYM_XFORM_MODINV,\n+\t.base = {\n+\t\t.data = {\n+\t\t\t0xF8, 0xBA, 0x1A, 0x55, 0xD0, 0x2F, 0x85,\n+\t\t\t0xAE, 0x96, 0x7B, 0xB6, 0x2F, 0xB6, 0xCD,\n+\t\t\t0xA8, 0xEB, 0x7E, 0x78, 0xA0, 0x50\n+\t\t},\n+\t\t.len = 20\n+\t},\n+\t.inverse = {\n+\t\t.data = {\n+\t\t\t0x52, 0xb1, 0xa3, 0x8c, 0xc5, 0x8a, 0xb9, 0x1f,\n+\t\t\t0xb6, 0x82, 0xf5, 0x6a, 0x9a, 0xde, 0x8d, 0x2e,\n+\t\t\t0x62, 0x4b, 0xac, 0x49, 0x21, 0x1d, 0x30, 0x4d,\n+\t\t\t0x32, 0xac, 0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63, 0x6a,\n+\t\t\t0x44, 0x5b, 0xad, 0x84, 0x0d, 0x3f, 0x27, 0x6e,\n+\t\t\t0x3b, 0x34, 0x91, 0x60, 0x14, 0xb9, 0xaa, 0x72,\n+\t\t\t0xfd, 0xa3, 0x64, 0xd2, 0x03, 0xa7, 0x53, 0x87,\n+\t\t\t0x9e, 0x88, 0x0b, 0xc1, 0x14, 0x93, 0x1a, 0x62,\n+\t\t\t0xff, 0xb1, 0x5d, 0x74, 0xcd, 0x59, 0x63, 0x18,\n+\t\t\t0x11, 0x3d, 0x4f, 0xba, 0x75, 0xd4, 0x33, 0x4e,\n+\t\t\t0x23, 0x6b, 0x7b, 0x57, 0x44, 0xe1, 0xd3, 0x03,\n+\t\t\t0x13, 0xa6, 0xf0, 0x8b, 0x60, 0xb0, 0x9e, 0xee,\n+\t\t\t0x75, 0x08, 0x9d, 0x71, 0x63, 0x13, 0xcb, 0xa6,\n+\t\t\t0x81, 0x92, 0x14, 0x03, 0x22, 0x2d, 0xde, 0x55\n+\t\t},\n+\t\t.len = 128\n+\t},\n+\t.result_len = 128\n+};\n+\n /* modular operation test data */\n uint8_t base[] = {\n \t0xF8, 0xBA, 0x1A, 0x55, 0xD0, 0x2F, 0x85,\n",
    "prefixes": [
        "v4",
        "2/3"
    ]
}