get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 128848,
    "url": "http://patchwork.dpdk.org/api/patches/128848/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230620103235.539282-4-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-4-arkadiuszx.kusztal@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230620103235.539282-4-arkadiuszx.kusztal@intel.com",
    "date": "2023-06-20T10:32:35",
    "name": "[v4,3/3] app/test: add rsa none padding tests",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "cb5764ee45a99bb358dfadb3ac23fa4ca0977b72",
    "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-4-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/128848/comments/",
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/128848/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 AF35E42D07;\n\tTue, 20 Jun 2023 12:33:04 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id ED14E42D38;\n\tTue, 20 Jun 2023 12:32:51 +0200 (CEST)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id AA58242D31\n for <dev@dpdk.org>; Tue, 20 Jun 2023 12:32:49 +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:49 -0700",
            "from silpixa00401012.ir.intel.com ([10.243.23.125])\n by orsmga005.jf.intel.com with ESMTP; 20 Jun 2023 03:32:47 -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=1687257169; x=1718793169;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=BhrZH0nZwjn3PPeJnLaqkP5NKJrUrxVLm1HBcOJix+A=;\n b=birqaGuZraNlI+qBPT317sPpcBVxvLAwpdWfyn1gMzfg/2LhJLSKzdrJ\n s/nflS1yBk/iTZBPdu7uij2uZHyprU+x0yKED/uC4FY94a+6PJQmLRkIB\n 8zNzRlgXmvbjZH6RMvXAnKXmYMNUyBK06hUDa16ou/Z5KtnwgCK/nLKWv\n PWjX+bcCfnDT+sXbVi6m9rqDyavMO/kEUzNX2lodfCyNCrkUrEn/JhfBt\n mRMYpS3yaEvQOFQSzpHSsZbMfRvVhLBPXjuWuTsFFkzZ9VoWyd4IjSS3w\n 7GawnK8bNzGys4pdq0sWiNVdbizt5eS4b608YP3Hb5PiXzcUx7xW1HgZE g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10746\"; a=\"423489059\"",
            "E=Sophos;i=\"6.00,256,1681196400\"; d=\"scan'208\";a=\"423489059\"",
            "E=McAfee;i=\"6600,9927,10746\"; a=\"888204814\"",
            "E=Sophos;i=\"6.00,256,1681196400\"; d=\"scan'208\";a=\"888204814\""
        ],
        "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 3/3] app/test: add rsa none padding tests",
        "Date": "Tue, 20 Jun 2023 10:32:35 +0000",
        "Message-Id": "<20230620103235.539282-4-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 RSA NONE padding test cases.\n\nSigned-off-by: Arkadiusz Kusztal <arkadiuszx.kusztal@intel.com>\n---\n app/test/test_cryptodev_asym.c             | 205 +++++++++++++++++++\n app/test/test_cryptodev_rsa_test_vectors.h | 220 +++++++++++++++++++++\n 2 files changed, 425 insertions(+)",
    "diff": "diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c\nindex c9a5816250..34730f9b7d 100644\n--- a/app/test/test_cryptodev_asym.c\n+++ b/app/test/test_cryptodev_asym.c\n@@ -2490,6 +2490,193 @@ modular_multiplicative_inverse(const void *test_data)\n \treturn TEST_SUCCESS;\n }\n \n+#define SET_RSA_PARAM(arg, vector, coef) \\\n+\tuint8_t coef[TEST_DATA_SIZE] = { }; \\\n+\tmemcpy(coef, vector->coef.data, vector->coef.len); \\\n+\targ.coef.data = coef; \\\n+\targ.coef.length = vector->coef.len\n+\n+#define SET_RSA_PARAM_QT(arg, vector, coef) \\\n+\tuint8_t coef[TEST_DATA_SIZE] = { }; \\\n+\tmemcpy(coef, vector->coef.data, vector->coef.len); \\\n+\targ.qt.coef.data = coef; \\\n+\targ.qt.coef.length = vector->coef.len\n+\n+typedef void (*rsa_key_init_t)(struct rte_crypto_asym_xform *,\n+\tconst struct rsa_test_data_2 *);\n+\n+static int\n+RSA_Encrypt(const struct rsa_test_data_2 *vector, uint8_t *cipher_buf)\n+{\n+\tself->result_op = NULL;\n+\t/* Compute encryption on the test vector */\n+\tself->op->asym->rsa.op_type = RTE_CRYPTO_ASYM_OP_ENCRYPT;\n+\tself->op->asym->rsa.cipher.data = cipher_buf;\n+\tself->op->asym->rsa.cipher.length = 0;\n+\tSET_RSA_PARAM(self->op->asym->rsa, vector, message);\n+\tself->op->asym->rsa.padding.type = vector->padding;\n+\n+\trte_crypto_op_attach_asym_session(self->op, self->sess);\n+\tTEST_ASSERT_SUCCESS(send_one(),\n+\t\t\"Failed to process crypto op (Enryption)\");\n+\n+\treturn 0;\n+}\n+\n+static int\n+RSA_Decrypt(const struct rsa_test_data_2 *vector, uint8_t *plaintext,\n+\t\tconst int use_op)\n+{\n+\tuint8_t cipher[TEST_DATA_SIZE] = { 0 };\n+\n+\tif (use_op == 0) {\n+\t\tmemcpy(cipher, vector->cipher.data, vector->cipher.len);\n+\t\tself->op->asym->rsa.cipher.data = cipher;\n+\t\tself->op->asym->rsa.cipher.length = vector->cipher.len;\n+\t}\n+\tself->result_op = NULL;\n+\tself->op->asym->rsa.message.data = plaintext;\n+\tself->op->asym->rsa.message.length = 0;\n+\tself->op->asym->rsa.op_type = RTE_CRYPTO_ASYM_OP_DECRYPT;\n+\tself->op->asym->rsa.padding.type = vector->padding;\n+\trte_crypto_op_attach_asym_session(self->op, self->sess);\n+\tTEST_ASSERT_SUCCESS(send_one(),\n+\t\t\"Failed to process crypto op (Decryption)\");\n+\treturn 0;\n+}\n+\n+static void\n+RSA_key_init_Exp(struct rte_crypto_asym_xform *xform,\n+\t\tconst struct rsa_test_data_2 *vector)\n+{\n+\tSET_RSA_PARAM(xform->rsa, vector, n);\n+\tSET_RSA_PARAM(xform->rsa, vector, e);\n+\tSET_RSA_PARAM(xform->rsa, vector, d);\n+\txform->rsa.key_type = RTE_RSA_KEY_TYPE_EXP;\n+}\n+\n+static void\n+RSA_key_init_CRT(struct rte_crypto_asym_xform *xform,\n+\t\tconst struct rsa_test_data_2 *vector)\n+{\n+\tSET_RSA_PARAM(xform->rsa, vector, n);\n+\tSET_RSA_PARAM(xform->rsa, vector, e);\n+\tSET_RSA_PARAM_QT(xform->rsa, vector, p);\n+\tSET_RSA_PARAM_QT(xform->rsa, vector, q);\n+\tSET_RSA_PARAM_QT(xform->rsa, vector, dP);\n+\tSET_RSA_PARAM_QT(xform->rsa, vector, dQ);\n+\tSET_RSA_PARAM_QT(xform->rsa, vector, qInv);\n+\txform->rsa.key_type = RTE_RSA_KEY_TYPE_QT;\n+}\n+\n+static int\n+RSA_Init_Session(const struct rsa_test_data_2 *vector,\n+\trsa_key_init_t key_init)\n+{\n+\tconst uint8_t dev_id = params->valid_devs[0];\n+\tstruct rte_cryptodev_info dev_info;\n+\tstruct rte_crypto_asym_xform xform = { };\n+\tint ret = 0;\n+\n+\tkey_init(&xform, vector);\n+\txform.xform_type = RTE_CRYPTO_ASYM_XFORM_RSA;\n+\n+\trte_cryptodev_info_get(dev_id, &dev_info);\n+\tif (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT)) {\n+\t\tRTE_LOG(INFO, USER1,\n+\t\t\t\"Device doesn't support decrypt op with quintuple key type. Test skipped\\n\");\n+\t\treturn TEST_SKIPPED;\n+\t}\n+\tret = rte_cryptodev_asym_session_create(dev_id, &xform,\n+\t\tparams->session_mpool, &self->sess);\n+\tif (ret < 0) {\n+\t\tRTE_LOG(ERR, USER1,\n+\t\t\t\"Session creation failed for enc_dec_crt\\n\");\n+\t\treturn (ret == -ENOTSUP) ? TEST_SKIPPED : TEST_FAILED;\n+\t}\n+\treturn 0;\n+}\n+\n+static int\n+KAT_RSA_Encrypt(const void *data)\n+{\n+\tuint8_t cipher_buf[TEST_DATA_SIZE] = {0};\n+\tconst struct rsa_test_data_2 *vector = data;\n+\tint ret = RSA_Init_Session(vector, RSA_key_init_Exp);\n+\n+\tif (ret) {\n+\t\tRTE_LOG(ERR, USER1, \"Failed to init session for RSA\\n\");\n+\t\treturn ret;\n+\t}\n+\tTEST_ASSERT_SUCCESS(RSA_Encrypt(vector, cipher_buf),\n+\t\t\"RSA: Failed to encrypt\");\n+\tTEST_ASSERT_BUFFERS_ARE_EQUAL(vector->cipher.data,\n+\t\tself->result_op->asym->rsa.cipher.data,\n+\t\tself->result_op->asym->rsa.cipher.length,\n+\t\t\"operation verification failed\\n\");\n+\treturn 0;\n+}\n+\n+static int\n+KAT_RSA_Encrypt_CRT(const void *data)\n+{\n+\tuint8_t cipher_buf[TEST_DATA_SIZE] = {0};\n+\tconst struct rsa_test_data_2 *vector = data;\n+\tint ret = RSA_Init_Session(vector, RSA_key_init_CRT);\n+\n+\tif (ret) {\n+\t\tRTE_LOG(ERR, USER1, \"Failed to init session for RSA\\n\");\n+\t\treturn ret;\n+\t}\n+\tTEST_ASSERT_SUCCESS(RSA_Encrypt(vector, cipher_buf),\n+\t\t\"RSA: Failed to encrypt\");\n+\tTEST_ASSERT_BUFFERS_ARE_EQUAL(vector->cipher.data,\n+\t\tself->result_op->asym->rsa.cipher.data,\n+\t\tself->result_op->asym->rsa.cipher.length,\n+\t\t\"operation verification failed\\n\");\n+\treturn 0;\n+}\n+\n+static int\n+KAT_RSA_Decrypt(const void *data)\n+{\n+\tuint8_t message[TEST_DATA_SIZE] = {0};\n+\tconst struct rsa_test_data_2 *vector = data;\n+\tint ret = RSA_Init_Session(vector, RSA_key_init_Exp);\n+\n+\tif (ret) {\n+\t\tRTE_LOG(ERR, USER1, \"Failed to init session for RSA\\n\");\n+\t\treturn ret;\n+\t}\n+\tTEST_ASSERT_SUCCESS(RSA_Decrypt(vector, message, 0),\n+\t\t\"RSA: Failed to encrypt\");\n+\tTEST_ASSERT_BUFFERS_ARE_EQUAL(vector->message.data,\n+\t\tself->result_op->asym->rsa.message.data,\n+\t\tself->result_op->asym->rsa.message.length,\n+\t\t\"operation verification failed\\n\");\n+\treturn 0;\n+}\n+\n+static int\n+KAT_RSA_Decrypt_CRT(const void *data)\n+{\n+\tuint8_t message[TEST_DATA_SIZE] = {0};\n+\tconst struct rsa_test_data_2 *vector = data;\n+\tint ret = RSA_Init_Session(vector, RSA_key_init_CRT);\n+\n+\tif (ret) {\n+\t\tRTE_LOG(ERR, USER1, \"Failed to init session for RSA\\n\");\n+\t\treturn ret;\n+\t}\n+\tTEST_ASSERT_SUCCESS(RSA_Decrypt(vector, message, 0),\n+\t\t\"RSA: Failed to encrypt\");\n+\tTEST_ASSERT_BUFFERS_ARE_EQUAL(vector->message.data,\n+\t\tself->result_op->asym->rsa.message.data,\n+\t\tself->result_op->asym->rsa.message.length,\n+\t\t\"operation verification failed\\n\");\n+\treturn 0;\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@@ -2530,6 +2717,24 @@ static struct unit_test_suite cryptodev_qat_asym_testsuite  = {\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\t/* RSA EXP */\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"RSA Encryption (n=128, pt=20, e=3) EXP, Padding: NONE\",\n+\t\t\tut_setup_asym, ut_teardown_asym,\n+\t\t\tKAT_RSA_Encrypt, &RSA_vector_128_20_3_None),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"RSA Decryption (n=128, pt=20, e=3) EXP, Padding: NONE\",\n+\t\t\tut_setup_asym, ut_teardown_asym,\n+\t\t\tKAT_RSA_Decrypt, &RSA_vector_128_20_3_None),\n+\t\t/* RSA CRT */\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"RSA Encryption (n=128, pt=20, e=3) CRT, Padding: NONE\",\n+\t\t\tut_setup_asym, ut_teardown_asym,\n+\t\t\tKAT_RSA_Encrypt_CRT, &RSA_vector_128_20_3_None),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"RSA Decryption (n=128, pt=20, e=3) CRT, Padding: NONE\",\n+\t\t\tut_setup_asym, ut_teardown_asym,\n+\t\t\tKAT_RSA_Decrypt_CRT, &RSA_vector_128_20_3_None),\n \t\tTEST_CASES_END() /**< NULL terminate unit test array */\n \t}\n };\ndiff --git a/app/test/test_cryptodev_rsa_test_vectors.h b/app/test/test_cryptodev_rsa_test_vectors.h\nindex 77a52d259b..b4982014a2 100644\n--- a/app/test/test_cryptodev_rsa_test_vectors.h\n+++ b/app/test/test_cryptodev_rsa_test_vectors.h\n@@ -16,6 +16,226 @@ struct rsa_test_data {\n \tunsigned int len;\n };\n \n+struct rsa_test_data_2 {\n+\tenum rte_crypto_asym_xform_type xform_type;\n+\tconst char *description;\n+\tuint64_t op_type_flags;\n+\tstruct {\n+\t\tuint8_t data[DATA_SIZE];\n+\t\tuint16_t len;\n+\t} message;\n+\tstruct {\n+\t\tuint8_t data[DATA_SIZE];\n+\t\tuint16_t len;\n+\t} cipher;\n+\tstruct {\n+\t\tuint8_t data[DATA_SIZE];\n+\t\tuint16_t len;\n+\t} sign;\n+\tstruct {\n+\t\tuint8_t data[DATA_SIZE];\n+\t\tuint16_t len;\n+\t} e;\n+\tstruct {\n+\t\tuint8_t data[DATA_SIZE];\n+\t\tuint16_t len;\n+\t} d;\n+\tstruct {\n+\t\tuint8_t data[DATA_SIZE];\n+\t\tuint16_t len;\n+\t} n;\n+\tstruct {\n+\t\tuint8_t data[DATA_SIZE];\n+\t\tuint16_t len;\n+\t} p;\n+\tstruct {\n+\t\tuint8_t data[DATA_SIZE];\n+\t\tuint16_t len;\n+\t} q;\n+\tstruct {\n+\t\tuint8_t data[DATA_SIZE];\n+\t\tuint16_t len;\n+\t} dP;\n+\tstruct {\n+\t\tuint8_t data[DATA_SIZE];\n+\t\tuint16_t len;\n+\t} dQ;\n+\tstruct {\n+\t\tuint8_t data[DATA_SIZE];\n+\t\tuint16_t len;\n+\t} qInv;\n+\n+\tuint16_t result_len;\n+\tenum rte_crypto_rsa_padding_type padding;\n+\tint key_exp;\n+\tint key_qt;\n+};\n+\n+static const struct\n+rsa_test_data_2 RSA_vector_128_20_3_None = {\n+\t.description =\n+\t\t\"RSA Encryption Decryption (n=128, pt=20, e=3) EXP, QT\",\n+\t.xform_type = RTE_CRYPTO_ASYM_XFORM_RSA,\n+\t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,\n+\t},\n+\t.dQ = {\n+\t\t.data = {\n+\t\t\t0xbe, 0xff, 0xf9, 0x05, 0x43, 0xc8, 0xdc, 0x3b,\n+\t\t\t0x0b, 0x0d, 0x28, 0xde, 0x73, 0x46, 0x11, 0x8e,\n+\t\t\t0xc6, 0x4e, 0x11, 0xd8, 0x7b, 0xf0, 0xfc, 0x81,\n+\t\t\t0xd7, 0x66, 0xd3, 0xbc, 0x65, 0xa6, 0x39, 0x14,\n+\t\t\t0xbd, 0xab, 0x72, 0xb7, 0x57, 0xc9, 0x5b, 0xaf,\n+\t\t\t0x83, 0xed, 0x3b, 0x84, 0x68, 0x15, 0x18, 0x6b,\n+\t\t\t0x4c, 0x32, 0xac, 0x6f, 0x38, 0x96, 0xa2, 0xb5,\n+\t\t\t0xdb, 0x14, 0xe2, 0x70, 0x9c, 0x73, 0x29, 0x09\n+\t\t},\n+\t\t.len = 64,\n+\t},\n+\t.qInv = {\n+\t\t.data = {\n+\t\t\t0x59, 0xbd, 0xb1, 0x37, 0xeb, 0x4e, 0xcf, 0x68,\n+\t\t\t0xe7, 0x85, 0x91, 0xbb, 0xc0, 0xdb, 0x8e, 0x41,\n+\t\t\t0x91, 0x4a, 0xc0, 0xb1, 0xc5, 0xe8, 0x91, 0xf6,\n+\t\t\t0xc7, 0x5a, 0x98, 0x1a, 0x8a, 0x0f, 0x45, 0xb2,\n+\t\t\t0x5b, 0xff, 0x7a, 0x2d, 0x98, 0x89, 0x55, 0xd9,\n+\t\t\t0xbf, 0x6e, 0xdd, 0x2d, 0xd4, 0xe8, 0x0a, 0xaa,\n+\t\t\t0xae, 0x2a, 0xc4, 0x16, 0xb5, 0xba, 0xe1, 0x69,\n+\t\t\t0x71, 0x94, 0xdd, 0xa0, 0xf5, 0x1e, 0x6d, 0xcc\n+\t\t},\n+\t\t.len = 64,\n+\t},\n+\t.padding = RTE_CRYPTO_RSA_PADDING_NONE,\n+};\n+\n struct rsa_test_data rsaplaintext = {\n \t.data = {\n \t\t0xf8, 0xba, 0x1a, 0x55, 0xd0, 0x2f, 0x85, 0xae,\n",
    "prefixes": [
        "v4",
        "3/3"
    ]
}