Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/110525/?format=api
http://patches.dpdk.org/api/patches/110525/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220429161559.415645-9-blo@iol.unh.edu/", "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": "<20220429161559.415645-9-blo@iol.unh.edu>", "list_archive_url": "https://inbox.dpdk.org/dev/20220429161559.415645-9-blo@iol.unh.edu", "date": "2022-04-29T16:15:59", "name": "[v4,8/8] examples/fips_validation: add parsing for cmac", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "c8b66b41bf6faefef6edb8b581eb5359ffa95277", "submitter": { "id": 1678, "url": "http://patches.dpdk.org/api/people/1678/?format=api", "name": "Brandon Lo", "email": "blo@iol.unh.edu" }, "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/20220429161559.415645-9-blo@iol.unh.edu/mbox/", "series": [ { "id": 22738, "url": "http://patches.dpdk.org/api/series/22738/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22738", "date": "2022-04-29T16:15:51", "name": "Add JSON vector set support to fips validation", "version": 4, "mbox": "http://patches.dpdk.org/series/22738/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/110525/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/110525/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 65471A04FF;\n\tFri, 29 Apr 2022 18:16:58 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1596642848;\n\tFri, 29 Apr 2022 18:16:14 +0200 (CEST)", "from mail-qt1-f170.google.com (mail-qt1-f170.google.com\n [209.85.160.170])\n by mails.dpdk.org (Postfix) with ESMTP id 1D97942834\n for <dev@dpdk.org>; Fri, 29 Apr 2022 18:16:10 +0200 (CEST)", "by mail-qt1-f170.google.com with SMTP id p4so5557654qtq.12\n for <dev@dpdk.org>; Fri, 29 Apr 2022 09:16:10 -0700 (PDT)", "from blo.iol.unh.edu ([2606:4100:3880:1270:ec49:26fa:daa6:229d])\n by smtp.gmail.com with ESMTPSA id\n k20-20020a05622a03d400b002ec16d2694fsm2081188qtx.39.2022.04.29.09.16.08\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 29 Apr 2022 09:16:09 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu;\n s=unh-iol;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=5Iscdf4HUPn4qo1v1LSs0EbMRcDmlYHAsnXH+s2EvAA=;\n b=MBu2R4iGgRt/k/KX67RknQQKdalZbdmM5eySCsPGSlDGh+e+Gibea890oey7aCwdzD\n gv+GppKwrvjD7ga+clEskGlVk3uPQZ9vvFhv/jbWZu55R7ZE58n+0G5LBQahNu1++qy9\n rLm4493zBjHF4FA6Vv2T9oNkar6lTkCmxbPg8=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=5Iscdf4HUPn4qo1v1LSs0EbMRcDmlYHAsnXH+s2EvAA=;\n b=GnxI+wO0FQVeNfPtMIORroSi1NbBH91oYSNLlECJsYEC3NxH6/MznxQ3bydge8mhlJ\n KCIAK77GWCkPGaMcZOB61SyuvlCdd1Fw9WcqMg22pqH8THKu0HCXLyzYGaXg3Slms3jB\n gjdalMR78qndAAw/sLb/vhfZYW1BiauOsH8SVOvuf5y7t3wLeOw0Yui5RE79QC1wu/Ie\n E1NOzrk6XIjg+b0zFN2Unw+zM/mkvw658ogJiIIhRer47nWABHJa8q7tjWOtQdmzxJ7I\n hBv2uhTFMqrtduKiUL0a41q08YqF4sCMQMFQEhBiF0Uza9R6RRGAptpeUyh5DQWPpUWS\n mGQA==", "X-Gm-Message-State": "AOAM530NBlc9zHjLF5wrwcsqaP1zdOz6KvPUPR8dFRpx2Cx2ZZoiFPb1\n nnREO/sQHbQRqdajqrrCOqVftg==", "X-Google-Smtp-Source": "\n ABdhPJwLBN0vx/LbNwoT1mDJTyhnV1h0oj55huk9pV+UaUudpzW5MAAO3oAiyU/dc2W1bO7DyotxNg==", "X-Received": "by 2002:a05:622a:1c5:b0:2f1:f99f:b74b with SMTP id\n t5-20020a05622a01c500b002f1f99fb74bmr147587qtw.602.1651248969516;\n Fri, 29 Apr 2022 09:16:09 -0700 (PDT)", "From": "Brandon Lo <blo@iol.unh.edu>", "To": "roy.fan.zhang@intel.com,\n\tciara.power@intel.com", "Cc": "dev@dpdk.org,\n\tBrandon Lo <blo@iol.unh.edu>", "Subject": "[PATCH v4 8/8] examples/fips_validation: add parsing for cmac", "Date": "Fri, 29 Apr 2022 12:15:59 -0400", "Message-Id": "<20220429161559.415645-9-blo@iol.unh.edu>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20220429161559.415645-1-blo@iol.unh.edu>", "References": "<20220129175514.746925-1-blo@iol.unh.edu>\n <20220429161559.415645-1-blo@iol.unh.edu>", "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 function to parse algorithm for CMAC test.\n\nSigned-off-by: Brandon Lo <blo@iol.unh.edu>\n---\n examples/fips_validation/fips_validation.c | 31 +++++++++++++++++++---\n examples/fips_validation/main.c | 3 +++\n 2 files changed, 31 insertions(+), 3 deletions(-)", "diff": "diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c\nindex 04dfb85262..8e0a55c624 100644\n--- a/examples/fips_validation/fips_validation.c\n+++ b/examples/fips_validation/fips_validation.c\n@@ -460,6 +460,8 @@ fips_test_parse_one_json_vector_set(void)\n \t\tinfo.algo = FIPS_TEST_ALGO_AES_GCM;\n \tif (strstr(algo_str, \"HMAC\"))\n \t\tinfo.algo = FIPS_TEST_ALGO_HMAC;\n+\tif (strstr(algo_str, \"CMAC\"))\n+\t\tinfo.algo = FIPS_TEST_ALGO_AES_CMAC;\n \telse\n \t\treturn -EINVAL;\n \n@@ -470,7 +472,6 @@ int\n fips_test_parse_one_json_group(void)\n {\n \tint ret, i;\n-\tjson_int_t val;\n \tjson_t *param;\n \n \tif (info.interim_callbacks) {\n@@ -478,8 +479,20 @@ fips_test_parse_one_json_group(void)\n \t\tfor (i = 0; info.interim_callbacks[i].key != NULL; i++) {\n \t\t\tparam = json_object_get(json_info.json_test_group,\n \t\t\t\t\tinfo.interim_callbacks[i].key);\n-\t\t\tval = json_integer_value(param);\n-\t\t\tsnprintf(json_value, 255, \"%\"JSON_INTEGER_FORMAT, val);\n+\t\t\tswitch (json_typeof(param)) {\n+\t\t\tcase JSON_STRING:\n+\t\t\t\tsnprintf(json_value, 256, \"%s\", json_string_value(param));\n+\t\t\t\tbreak;\n+\n+\t\t\tcase JSON_INTEGER:\n+\t\t\t\tsnprintf(json_value, 255, \"%\"JSON_INTEGER_FORMAT,\n+\t\t\t\t\t\tjson_integer_value(param));\n+\t\t\t\tbreak;\n+\n+\t\t\tdefault:\n+\t\t\t\treturn -EINVAL;\n+\t\t\t}\n+\n \t\t\t/* First argument is blank because the key\n \t\t\t * is not included in the string being parsed.\n \t\t\t */\n@@ -673,6 +686,18 @@ parser_read_uint32_bit_val(const char *key, char *src, struct fips_val *val)\n \treturn 0;\n }\n \n+int\n+parser_read_cmac_direction_str(__rte_unused const char *key, char *src,\n+\t\t__rte_unused struct fips_val *val)\n+{\n+\tif (strcmp(src, \"gen\") == 0)\n+\t\tinfo.op = FIPS_TEST_ENC_AUTH_GEN;\n+\telse if (strcmp(src, \"ver\") == 0)\n+\t\tinfo.op = FIPS_TEST_DEC_AUTH_VERIF;\n+\n+\treturn 0;\n+}\n+\n int\n writeback_hex_str(const char *key, char *dst, struct fips_val *val)\n {\ndiff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c\nindex de6dedaf75..aa8034c29f 100644\n--- a/examples/fips_validation/main.c\n+++ b/examples/fips_validation/main.c\n@@ -1946,6 +1946,9 @@ fips_test_one_test_group(void)\n \tcase FIPS_TEST_ALGO_HMAC:\n \t\tret = parse_test_hmac_json_init();\n \t\tbreak;\n+\tcase FIPS_TEST_ALGO_AES_CMAC:\n+\t\tret = parse_test_cmac_json_init();\n+\t\tbreak;\n \tdefault:\n \t\treturn -EINVAL;\n \t}\n", "prefixes": [ "v4", "8/8" ] }{ "id": 110525, "url": "