get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 12465,
    "url": "https://patches.dpdk.org/api/patches/12465/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1462530136-9216-3-git-send-email-arkadiuszx.kusztal@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1462530136-9216-3-git-send-email-arkadiuszx.kusztal@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1462530136-9216-3-git-send-email-arkadiuszx.kusztal@intel.com",
    "date": "2016-05-06T10:22:16",
    "name": "[dpdk-dev,2/2] app/test: add test cases for AES CTR",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a3d52db45ee736354bc315becf1e9dcdc2957fba",
    "submitter": {
        "id": 452,
        "url": "https://patches.dpdk.org/api/people/452/?format=api",
        "name": "Arkadiusz Kusztal",
        "email": "arkadiuszx.kusztal@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1462530136-9216-3-git-send-email-arkadiuszx.kusztal@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/12465/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/12465/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id B9CBC5A26;\n\tFri,  6 May 2016 12:22:37 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id B69D55A06\n\tfor <dev@dpdk.org>; Fri,  6 May 2016 12:22:35 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga103.fm.intel.com with ESMTP; 06 May 2016 03:22:34 -0700",
            "from sivswdev03.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.217.157])\n\tby orsmga001.jf.intel.com with ESMTP; 06 May 2016 03:22:33 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.24,586,1455004800\"; d=\"scan'208\";a=\"947511094\"",
        "From": "Arek Kusztal <arkadiuszx.kusztal@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "fiona.trahe@intel.com, deepak.k.jain@intel.com, john.griffin@intel.com, \n\tArek Kusztal <arkadiuszx.kusztal@intel.com>",
        "Date": "Fri,  6 May 2016 11:22:16 +0100",
        "Message-Id": "<1462530136-9216-3-git-send-email-arkadiuszx.kusztal@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": "<1462530136-9216-1-git-send-email-arkadiuszx.kusztal@intel.com>",
        "References": "<1462530136-9216-1-git-send-email-arkadiuszx.kusztal@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 2/2] app/test: add test cases for AES CTR",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Added tests cases for AES working in counter mode\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n app/test/test_cryptodev.c                      | 254 ++++++++++++++++++++++++\n app/test/test_cryptodev_aes_ctr_test_vectors.h | 257 +++++++++++++++++++++++++\n 2 files changed, 511 insertions(+)\n create mode 100644 app/test/test_cryptodev_aes_ctr_test_vectors.h",
    "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 8e8da98..03d6f02 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -42,6 +42,8 @@\n \n #include \"test.h\"\n #include \"test_cryptodev.h\"\n+\n+#include \"test_cryptodev_aes_ctr_test_vectors.h\"\n #include \"test_cryptodev_snow3g_test_vectors.h\"\n #include \"test_cryptodev_snow3g_hash_test_vectors.h\"\n #include \"test_cryptodev_gcm_test_vectors.h\"\n@@ -1358,6 +1360,245 @@ test_AES_CBC_HMAC_SHA1_decrypt_digest_verify(void)\n \treturn TEST_SUCCESS;\n }\n \n+    /* **** AES counter mode tests **** */\n+\n+static int\n+test_AES_CTR_encrypt_digest(const struct aes_ctr_test_data *tdata)\n+{\n+\tstruct crypto_testsuite_params *ts_params = &testsuite_params;\n+\tstruct crypto_unittest_params *ut_params = &unittest_params;\n+\tstruct rte_crypto_sym_op *sym_op;\n+\n+\tuint8_t hash_key[tdata->auth_key.len];\n+\tuint8_t cipher_key[tdata->key.len];\n+\n+\tut_params->ibuf = setup_test_string(ts_params->mbuf_pool,\n+\t\t\t(const char *)tdata->plaintext.data,\n+\t\t\ttdata->plaintext.len, 0);\n+\n+\t/* Setup Cipher Parameters */\n+\tut_params->cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER;\n+\tut_params->cipher_xform.next = &ut_params->auth_xform;\n+\n+\tut_params->cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_AES_CTR;\n+\tut_params->cipher_xform.cipher.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT;\n+\n+\trte_memcpy(cipher_key, tdata->key.data, tdata->key.len);\n+\tut_params->cipher_xform.cipher.key.data = cipher_key;\n+\tut_params->cipher_xform.cipher.key.length =\n+\t\t\ttdata->key.len;\n+\n+\t/* Setup HMAC Parameters */\n+\tut_params->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH;\n+\tut_params->auth_xform.next = NULL;\n+\n+\tut_params->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_GENERATE;\n+\tut_params->auth_xform.auth.algo = tdata->auth_key.algo;\n+\tut_params->auth_xform.auth.key.length =\n+\t\t\ttdata->auth_key.len;\n+\trte_memcpy(hash_key, tdata->auth_key.data, tdata->auth_key.len);\n+\tut_params->auth_xform.auth.key.data = hash_key;\n+\tut_params->auth_xform.auth.digest_length = tdata->digest.len;\n+\n+\t/* Create Crypto session*/\n+\tut_params->sess = rte_cryptodev_sym_session_create(\n+\t\t\tts_params->valid_devs[0],\n+\t\t\t&ut_params->cipher_xform);\n+\tTEST_ASSERT_NOT_NULL(ut_params->sess, \"Session creation failed\");\n+\n+\t/* Generate Crypto op data structure */\n+\tut_params->op = rte_crypto_op_alloc(ts_params->op_mpool,\n+\t\t\tRTE_CRYPTO_OP_TYPE_SYMMETRIC);\n+\tTEST_ASSERT_NOT_NULL(ut_params->op,\n+\t\t\t\"Failed to allocate symmetric crypto operation struct\");\n+\n+\trte_crypto_op_attach_sym_session(ut_params->op, ut_params->sess);\n+\n+\tsym_op = ut_params->op->sym;\n+\n+\t/* set crypto operation source mbuf */\n+\tsym_op->m_src = ut_params->ibuf;\n+\n+\t/* Set operation cipher parameters */\n+\tsym_op->cipher.iv.data = (uint8_t *)rte_pktmbuf_prepend(\n+\t\t\tsym_op->m_src, tdata->iv.len);\n+\tsym_op->cipher.iv.phys_addr = rte_pktmbuf_mtophys(sym_op->m_src);\n+\tsym_op->cipher.iv.length = tdata->iv.len;\n+\n+\trte_memcpy(sym_op->cipher.iv.data, tdata->iv.data,\n+\t\t\ttdata->iv.len);\n+\n+\tsym_op->cipher.data.offset = tdata->iv.len;\n+\tsym_op->cipher.data.length = tdata->plaintext.len;\n+\n+\t/* Set operation authentication parameters */\n+\tsym_op->auth.digest.data = (uint8_t *)rte_pktmbuf_append(\n+\t\t\tsym_op->m_src, tdata->digest.len);\n+\tsym_op->auth.digest.phys_addr = rte_pktmbuf_mtophys_offset(\n+\t\t\tsym_op->m_src,\n+\t\t\ttdata->iv.len + tdata->ciphertext.len);\n+\tsym_op->auth.digest.length = tdata->digest.len;\n+\n+\tmemset(sym_op->auth.digest.data, 0, tdata->digest.len);\n+\n+\tsym_op->auth.data.offset = tdata->iv.len;\n+\tsym_op->auth.data.length = tdata->plaintext.len;\n+\n+\t/* Process crypto operation */\n+\tut_params->op = process_crypto_request(ts_params->valid_devs[0],\n+\t\t\tut_params->op);\n+\n+\tTEST_ASSERT_EQUAL(ut_params->op->status, RTE_CRYPTO_OP_STATUS_SUCCESS,\n+\t\t\t\"crypto op processing failed\");\n+\n+\tuint8_t *ciphertext = rte_pktmbuf_mtod_offset(ut_params->op->sym->m_src,\n+\t\t\tuint8_t *, tdata->iv.len);\n+\n+\tTEST_ASSERT_BUFFERS_ARE_EQUAL(ciphertext,\n+\t\t\ttdata->ciphertext.data,\n+\t\t\ttdata->ciphertext.len,\n+\t\t\t\"ciphertext data not as expected\");\n+\n+\tuint8_t *digest = ciphertext + tdata->ciphertext.len;\n+\n+\tTEST_ASSERT_BUFFERS_ARE_EQUAL(digest,\n+\t\t\ttdata->digest.data, tdata->digest.len,\n+\t\t\t\"Generated digest data not as expected\");\n+\n+\treturn TEST_SUCCESS;\n+}\n+\n+static int\n+test_AES_CTR_encrypt_digest_case_1(void)\n+{\n+\treturn test_AES_CTR_encrypt_digest(&aes_ctr_test_case_1);\n+}\n+static int\n+test_AES_CTR_encrypt_digest_case_2(void)\n+{\n+\treturn test_AES_CTR_encrypt_digest(&aes_ctr_test_case_2);\n+}\n+static int\n+test_AES_CTR_encrypt_digest_case_3(void)\n+{\n+\treturn test_AES_CTR_encrypt_digest(&aes_ctr_test_case_3);\n+}\n+\n+static int\n+test_AES_CTR_digest_verify_decrypt(const struct aes_ctr_test_data *tdata)\n+{\n+\tstruct crypto_testsuite_params *ts_params = &testsuite_params;\n+\tstruct crypto_unittest_params *ut_params = &unittest_params;\n+\tstruct rte_crypto_sym_op *sym_op;\n+\n+\tuint8_t hash_key[tdata->auth_key.len];\n+\tuint8_t cipher_key[tdata->key.len];\n+\n+\tut_params->ibuf = setup_test_string(ts_params->mbuf_pool,\n+\t\t\t(const char *)tdata->ciphertext.data,\n+\t\t\ttdata->ciphertext.len, 0);\n+\n+\tut_params->digest = (uint8_t *)rte_pktmbuf_append(ut_params->ibuf,\n+\t\t\ttdata->digest.len);\n+\n+\tTEST_ASSERT_NOT_NULL(ut_params->digest,\t\"no room to append digest\");\n+\n+\trte_memcpy(ut_params->digest,\n+\t\t\ttdata->digest.data,\n+\t\t\ttdata->digest.len);\n+\n+\tut_params->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH;\n+\tut_params->auth_xform.next = &ut_params->cipher_xform;\n+\n+\tut_params->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_VERIFY;\n+\tut_params->auth_xform.auth.algo = tdata->auth_key.algo;\n+\tut_params->auth_xform.auth.key.length = tdata->auth_key.len;\n+\trte_memcpy(hash_key, tdata->auth_key.data, tdata->auth_key.len);\n+\tut_params->auth_xform.auth.key.data =\n+\t\t\thash_key;\n+\tut_params->auth_xform.auth.digest_length = tdata->digest.len;\n+\n+\tut_params->cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER;\n+\tut_params->cipher_xform.next = NULL;\n+\n+\tut_params->cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_AES_CTR;\n+\tut_params->cipher_xform.cipher.op = RTE_CRYPTO_CIPHER_OP_DECRYPT;\n+\n+\trte_memcpy(cipher_key, tdata->key.data, tdata->key.len);\n+\tut_params->cipher_xform.cipher.key.data =\n+\t\t\tcipher_key;\n+\tut_params->cipher_xform.cipher.key.length = tdata->key.len;\n+\n+\tut_params->sess = rte_cryptodev_sym_session_create(\n+\t\t\tts_params->valid_devs[0],\n+\t\t\t&ut_params->auth_xform);\n+\tTEST_ASSERT_NOT_NULL(ut_params->sess, \"Session creation failed\");\n+\n+\tut_params->op = rte_crypto_op_alloc(ts_params->op_mpool,\n+\t\t\tRTE_CRYPTO_OP_TYPE_SYMMETRIC);\n+\tTEST_ASSERT_NOT_NULL(ut_params->op,\n+\t\t\t\"Failed to allocate symmetric crypto operation struct\");\n+\n+\trte_crypto_op_attach_sym_session(ut_params->op, ut_params->sess);\n+\n+\tsym_op = ut_params->op->sym;\n+\n+\tsym_op->m_src = ut_params->ibuf;\n+\n+\tsym_op->cipher.iv.data = (uint8_t *)rte_pktmbuf_prepend(\n+\t\t\tsym_op->m_src, tdata->iv.len);\n+\tsym_op->cipher.iv.phys_addr = rte_pktmbuf_mtophys(sym_op->m_src);\n+\tsym_op->cipher.iv.length = tdata->iv.len;\n+\n+\trte_memcpy(sym_op->cipher.iv.data, tdata->iv.data,\n+\t\t\ttdata->iv.len);\n+\n+\tsym_op->cipher.data.offset = tdata->iv.len;\n+\tsym_op->cipher.data.length = tdata->ciphertext.len;\n+\n+\tsym_op->auth.digest.data = ut_params->digest;\n+\tsym_op->auth.digest.phys_addr = rte_pktmbuf_mtophys_offset(\n+\t\t\tsym_op->m_src,\n+\t\t\ttdata->iv.len + tdata->ciphertext.len);\n+\tsym_op->auth.digest.length = tdata->digest.len;\n+\n+\tsym_op->auth.data.offset = tdata->iv.len;\n+\tsym_op->auth.data.length = tdata->ciphertext.len;\n+\n+\tut_params->op = process_crypto_request(ts_params->valid_devs[0],\n+\t\t\tut_params->op);\n+\n+\tTEST_ASSERT_EQUAL(ut_params->op->status, RTE_CRYPTO_OP_STATUS_SUCCESS,\n+\t\t\t\"crypto op processing failed\");\n+\n+\tuint8_t *plaintext = rte_pktmbuf_mtod_offset(ut_params->op->sym->m_src,\n+\t\t\tuint8_t *, tdata->iv.len);\n+\n+\tTEST_ASSERT_BUFFERS_ARE_EQUAL(plaintext,\n+\t\t\ttdata->plaintext.data,\n+\t\t\ttdata->plaintext.len,\n+\t\t\t\"plaintext data not as expected\");\n+\n+\n+\treturn TEST_SUCCESS;\n+}\n+\n+static int\n+test_AES_CTR_digest_verify_decrypt_case_1(void)\n+{\n+\treturn test_AES_CTR_digest_verify_decrypt(&aes_ctr_test_case_1);\n+}\n+static int\n+test_AES_CTR_digest_verify_decrypt_case_2(void)\n+{\n+\treturn test_AES_CTR_digest_verify_decrypt(&aes_ctr_test_case_2);\n+}\n+static int\n+test_AES_CTR_digest_verify_decrypt_case_3(void)\n+{\n+\treturn test_AES_CTR_digest_verify_decrypt(&aes_ctr_test_case_3);\n+}\n+\n \n /* ***** AES-CBC / HMAC-SHA256 Hash Tests ***** */\n \n@@ -4281,6 +4522,19 @@ static struct unit_test_suite cryptodev_qat_testsuite  = {\n \t\t\t\ttest_AES_CBC_HMAC_SHA512_decrypt_digest_verify),\n \n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\t\ttest_AES_CTR_encrypt_digest_case_1),\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\t\ttest_AES_CTR_encrypt_digest_case_2),\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\t\ttest_AES_CTR_encrypt_digest_case_3),\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\t\ttest_AES_CTR_digest_verify_decrypt_case_1),\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\t\ttest_AES_CTR_digest_verify_decrypt_case_2),\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n+\t\t\t\ttest_AES_CTR_digest_verify_decrypt_case_3),\n+\n+\t\tTEST_CASE_ST(ut_setup, ut_teardown,\n \t\t\t\ttest_AES_CBC_HMAC_AES_XCBC_encrypt_digest),\n \t\tTEST_CASE_ST(ut_setup, ut_teardown,\n \t\t\t\ttest_AES_CBC_HMAC_AES_XCBC_decrypt_digest_verify),\ndiff --git a/app/test/test_cryptodev_aes_ctr_test_vectors.h b/app/test/test_cryptodev_aes_ctr_test_vectors.h\nnew file mode 100644\nindex 0000000..9ec5fbc\n--- /dev/null\n+++ b/app/test/test_cryptodev_aes_ctr_test_vectors.h\n@@ -0,0 +1,257 @@\n+/*-\n+ *   BSD LICENSE\n+ *\n+ *   Copyright(c) 2016 Intel Corporation. All rights reserved.\n+ *\n+ *   Redistribution and use in source and binary forms, with or without\n+ *   modification, are permitted provided that the following conditions\n+ *   are met:\n+ *\n+ *\t * Redistributions of source code must retain the above copyright\n+ *\t   notice, this list of conditions and the following disclaimer.\n+ *\t * Redistributions in binary form must reproduce the above copyright\n+ *\t   notice, this list of conditions and the following disclaimer in\n+ *\t   the documentation and/or other materials provided with the\n+ *\t   distribution.\n+ *\t * Neither the name of Intel Corporation nor the names of its\n+ *\t   contributors may be used to endorse or promote products derived\n+ *\t   from this software without specific prior written permission.\n+ *\n+ *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ *   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+ *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+ *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+ *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+ *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+#ifndef TEST_CRYPTODEV_AES_CTR_TEST_VECTORS_H_\n+#define TEST_CRYPTODEV_AES_CTR_TEST_VECTORS_H_\n+\n+struct aes_ctr_test_data {\n+\n+\tstruct {\n+\t\tuint8_t data[64];\n+\t\tunsigned len;\n+\t} key;\n+\n+\tstruct {\n+\t\tuint8_t data[64] __rte_aligned(16);\n+\t\tunsigned len;\n+\t} iv;\n+\n+\tstruct {\n+\t\tuint8_t data[1024];\n+\t\tunsigned len;\n+\t} plaintext;\n+\n+\tstruct {\n+\t\tuint8_t data[1024];\n+\t\tunsigned len;\n+\t} ciphertext;\n+\n+\tstruct {\n+\t\tenum rte_crypto_auth_algorithm algo;\n+\t\tuint8_t data[64];\n+\t\tunsigned len;\n+\t} auth_key;\n+\n+\tstruct {\n+\t\tuint8_t data[1024];\n+\t\tunsigned len;\n+\t} digest;\n+};\n+\n+/* CTR-AES128-Encrypt-SHA1 test vector */\n+\n+static const struct aes_ctr_test_data aes_ctr_test_case_1 = {\n+\t.key = {\n+\t\t.data = {\n+\t\t\t0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6,\n+\t\t\t0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C\n+\t\t},\n+\t\t.len = 16\n+\t},\n+\t.iv = {\n+\t\t.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, 0x21, 0x70, 0xA0, 0xF3, 0x00, 0x9C, 0xEE\n+\t\t},\n+\t\t.len = 64\n+\t},\n+\t.auth_key = {\n+\t\t.algo = RTE_CRYPTO_AUTH_SHA1_HMAC,\n+\t\t.data = {\n+\t\t\t0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,\n+\t\t\t0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,\n+\t\t\t0xDE, 0xF4, 0xDE, 0xAD\n+\t\t},\n+\t\t.len = 20\n+\t},\n+\t.digest = {\n+\t\t.data = {\n+\t\t\t0x9B, 0x6F, 0x0C, 0x43, 0xF5, 0xC1, 0x3E, 0xB0,\n+\t\t\t0xB1, 0x70, 0xB8, 0x2B, 0x33, 0x09, 0xD2, 0xB2,\n+\t\t\t0x56, 0x20, 0xFB, 0xFE\n+\t\t},\n+\t\t/* Limitation of Multi-buffer library */\n+\t\t.len = TRUNCATED_DIGEST_BYTE_LENGTH_SHA1\n+\t}\n+};\n+\n+/** AES-192-XCBC Encrypt test vector */\n+\n+static const struct aes_ctr_test_data aes_ctr_test_case_2 = {\n+\t.key = {\n+\t\t.data = {\n+\t\t\t0xCB, 0xC5, 0xED, 0x5B, 0xE7, 0x7C, 0xBD, 0x8C,\n+\t\t\t0x50, 0xD9, 0x30, 0xF2, 0xB5, 0x6A, 0x0E, 0x5F,\n+\t\t\t0xAA, 0xAE, 0xAD, 0xA2, 0x1F, 0x49, 0x52, 0xD4\n+\t\t},\n+\t\t.len = 24\n+\t},\n+\t.iv = {\n+\t\t.data = {\n+\t\t\t0x3F, 0x69, 0xA8, 0xCD, 0xE8, 0xF0, 0xEF, 0x40,\n+\t\t\t0xB8, 0x7A, 0x4B, 0xED, 0x2B, 0xAF, 0xBF, 0x57\n+\t\t},\n+\t\t.len = 16\n+\t},\n+\t.plaintext = {\n+\t\t.data = {\n+\t\t\t0x01, 0x0F, 0x10, 0x1F, 0x20, 0x1C, 0x0E, 0xB8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E6, 0x59\n+\t\t},\n+\t\t.len = 16\n+\t},\n+\t.digest = {\n+\t\t.data = {\n+\t\t\t0xCA, 0x33, 0xB3, 0x3B, 0x16, 0x94, 0xAA, 0x55,\n+\t\t\t0x36, 0x6B, 0x45, 0x46\n+\t\t},\n+\t\t.len = TRUNCATED_DIGEST_BYTE_LENGTH_SHA1\n+\t}\n+};\n+\n+/* CTR-AES256-Encrypt-SHA1 test vector */\n+\n+static const struct aes_ctr_test_data aes_ctr_test_case_3 = {\n+\t.key = {\n+\t\t.data = {\n+\t\t\t0x60, 0x3D, 0xEB, 0x10, 0x15, 0xCA, 0x71, 0xBE,\n+\t\t\t0x2B, 0x73, 0xAE, 0xF0, 0x85, 0x7D, 0x77, 0x81,\n+\t\t\t0x1F, 0x35, 0x2C, 0x07, 0x3B, 0x61, 0x08, 0xD7,\n+\t\t\t0x2D, 0x98, 0x10, 0xA3, 0x09, 0x14, 0xDF, 0xF4\n+\t\t},\n+\t\t.len = 32\n+\t},\n+\t.iv = {\n+\t\t.data = {\n+\t\t\t0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,\n+\t\t\t0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF\n+\t\t},\n+\t\t.len = 16\n+\t},\n+\t.plaintext = {\n+\t\t.data = {\n+\t\t\t0x6B, 0xC1, 0xBE, 0xE2, 0x2E, 0x40, 0x9F, 0x96,\n+\t\t\t0xE9, 0x3D, 0x7E, 0x11, 0x73, 0x93, 0x17, 0x2A,\n+\t\t\t0xAE, 0x2D, 0x8A, 0x57, 0x1E, 0x03, 0xAC, 0x9C,\n+\t\t\t0x9E, 0xB7, 0x6F, 0xAC, 0x45, 0xAF, 0x8E, 0x51,\n+\t\t\t0x30, 0xC8, 0x1C, 0x46, 0xA3, 0x5C, 0xE4, 0x11,\n+\t\t\t0xE5, 0xFB, 0xC1, 0x19, 0x1A, 0x0A, 0x52, 0xEF,\n+\t\t\t0xF6, 0x9F, 0x24, 0x45, 0xDF, 0x4F, 0x9B, 0x17,\n+\t\t\t0xAD, 0x2B, 0x41, 0x7B, 0xE6, 0x6C, 0x37, 0x10\n+\t\t},\n+\t\t.len = 64\n+\t},\n+\t.ciphertext = {\n+\t\t.data = {\n+\t\t\t0x60, 0x1E, 0xC3, 0x13, 0x77, 0x57, 0x89, 0xA5,\n+\t\t\t0xB7, 0xA7, 0xF5, 0x04, 0xBB, 0xF3, 0xD2, 0x28,\n+\t\t\t0xF4, 0x43, 0xE3, 0xCA, 0x4D, 0x62, 0xB5, 0x9A,\n+\t\t\t0xCA, 0x84, 0xE9, 0x90, 0xCA, 0xCA, 0xF5, 0xC5,\n+\t\t\t0x2B, 0x09, 0x30, 0xDA, 0xA2, 0x3D, 0xE9, 0x4C,\n+\t\t\t0xE8, 0x70, 0x17, 0xBA, 0x2D, 0x84, 0x98, 0x8D,\n+\t\t\t0xDF, 0xC9, 0xC5, 0x8D, 0xB6, 0x7A, 0xAD, 0xA6,\n+\t\t\t0x13, 0xC2, 0xDD, 0x08, 0x45, 0x79, 0x41, 0xA6\n+\t\t},\n+\t\t.len = 64\n+\t},\n+\t.auth_key = {\n+\t\t.algo = RTE_CRYPTO_AUTH_SHA1_HMAC,\n+\t\t.data = {\n+\t\t\t0xF8, 0x2A, 0xC7, 0x54, 0xDB, 0x96, 0x18, 0xAA,\n+\t\t\t0xC3, 0xA1, 0x53, 0xF6, 0x1F, 0x17, 0x60, 0xBD,\n+\t\t\t0xDE, 0xF4, 0xDE, 0xAD\n+\t\t},\n+\t\t.len = 20\n+\t},\n+\t.digest = {\n+\t\t.data = {\n+\t\t\t0x3B, 0x1A, 0x9D, 0x82, 0x35, 0xD5, 0xDD, 0x64,\n+\t\t\t0xCC, 0x1B, 0xA9, 0xC0, 0xEB, 0xE9, 0x42, 0x16,\n+\t\t\t0xE7, 0x87, 0xA3, 0xEF\n+\t\t},\n+\t\t.len = TRUNCATED_DIGEST_BYTE_LENGTH_SHA1\n+\t}\n+};\n+#endif /* TEST_CRYPTODEV_AES_CTR_TEST_VECTORS_H_ */\n",
    "prefixes": [
        "dpdk-dev",
        "2/2"
    ]
}