From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM05-DM3-obe.outbound.protection.outlook.com (mail-eopbgr730065.outbound.protection.outlook.com [40.107.73.65]) by dpdk.org (Postfix) with ESMTP id 0D4175A44 for ; Fri, 14 Sep 2018 11:25:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RwAw691qZdnpvsNunStBGZwbPdUnZOpgrKrGfkFN3O0=; b=JH1GOAWpcakmM4ZNOd9+v5BqUdnVWc4gLP/hdMcHW850ciTYPiC6+Afc2Zlr21FSUqLtmCZstFiSBrHiq75w9DrL1zLkaZwA5JLmQQ78Kh5zSRHS5NvbxYDtC49TyCRKVBUfiMK/4pp/n9H8gduA+99SA7dLCr+pNZlFTr6Ay64= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by BN7PR07MB4897.namprd07.prod.outlook.com (2603:10b6:406:ef::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Fri, 14 Sep 2018 09:25:12 +0000 From: Anoob Joseph To: Akhil Goyal , Declan Doherty , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org, Akash Saxena Date: Fri, 14 Sep 2018 14:54:46 +0530 Message-Id: <1536917088-5529-2-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536917088-5529-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1536917088-5529-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BM1PR0101CA0013.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::23) To BN7PR07MB4897.namprd07.prod.outlook.com (2603:10b6:406:ef::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: afa8ce43-02e5-478d-1fc3-08d61a23fa7f X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4897; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4897; 3:DcLGdO7gv1LMgLxlIzOsrGlvd8JBMy2R04uBkINA9/KNzOTQ3+7z1pCuG6vD8HCS3nyzAbqrhyrMWKi1Flg8dIQOyJy9500fGlNBZAogHZ+Igep48l68Nv6z5WF3dwdV8arZh5faq+/eE0ZrmKclshp5O7ZlsrU7jrjb5aw1W6is7E8jAWfgE38VtnP56/HM7AMYkTDOCWQ0LIlqrPOcj2vqsFfn3liHIlnMwtSIwN3SQKCtDDaY1flub5M7Idcu; 25:SjvP2h81hvqnMS1iYTGHhlHFWbelow07NP1hSvtPRtEpNvIYWlpAAEvUyK5oL8lfvaAi+4oKfr8qvQoaGA6cXv3GOnC1nM+AJEy9KRsXfO6PeOjDVOG6a1SPjx7oyVVhL2cDsSuJsVVXUrYDOksRtDh0X4sWk1VtoxjZHg0nFcJFyeE88WiRIUYSda0bWskbEWZR53YgkN1L4xh0Djy8BBgO8rKQdvFh57vZNzWiXSrwfRKdr+5XO+Q8OG3HZuqdKJIgg3rQwGi6dAGjfFEg1B2FznsmLhfhU7EB4e/9sBnTkdG3o9BIyUNE3WNCQKe763bvfRvtanLxXA/S/B63Iw==; 31:wc7d5vf5ENubBd5sDt1E5HGXCiHOFrROCRK0qjFAhCSd7tQ7QILc0NYiz0bpqlQh2Ugry3deOyul/0VsxwfIhAlYCsW3vwRlifYIfpu4fEMWquV6adL+pZDpR28DswSgwHlvy+YonauvJWArBzvfxB7t1nZz31UrmMJegmxpFxumDSa/z8ytr8I3B4IHvgMOMpV+t33MkVsFMg/782n0N5sglYPsdp+L7qulvFmQNTI= X-MS-TrafficTypeDiagnostic: BN7PR07MB4897: X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4897; 20:Sor6IfyT3qeK3zsA0nMqKXOlHGuExnSxYxnB9hT/1CSc5XprcVlzTzfhG1fSRVPKyGnSCpMhbBgVJCt35nEASJSJk85nGf0ZC4kdyCkx+KuKAtcsSbI7wb6dn/i0Edpvji3EwYiTFdjA3v8fD+yQRInDhSHt6nQ152j7jlTcPFmwcMWC7Ah3UVVXi81s8jFOFP46L8ooRFF4UU5hfScrSdQ+2ugM2KjuaSpr54iHSMZvUUT+o0vvhfZ1Qb43MFezbuPGwlT89VzBra45H7VU8c+8Uc4OIOdODdcoCG5+2nqIQcHQ3Dvz/bS2g8zgkk13JJip7DsEVqdgZnwIysfEL7KX3zGJhpwwuPNz+3HeAQWJc7cvT4/mfCbi3y/JgcyHXcNPGFOYheMMkGNBykzCvdEYykerqSJJYSbuxN5PwW65qpwbfpJmtplNOwVJQkT2Gm31Y/1FubrhELLliSt66qUMLIKe3d6QFuBLX34X9EEXXFYN29d65gU2fS+3CC6yo7iJyR8cOtD8xv9FApLQqgYYinDYuMU1a5Pc7ubjJf3Kzy+KDMcu0Q8psn5jK+3cub2jbRvj50Z1yMXIgMFtRzkSdM0CkcNVdE/on/g9yDs=; 4:gYucD/9uARMYtH7Az12cVZjbkTRMAkHHYxgSg84L86GW42GB3VP8zRe06UCg1Htx0ry24ePq/dC7TwAhDAZ7SVKRWhPe3SXA9C53fLuOYIgtcURXv9OP7vvnfHjCaX2Mqz4WWBog4yWcs2sL/yZQrTOvekqudTngtcOtyLsD5DOcL9lOdpFD1KkYpPkSKYyZUoRN5kSr7623WKQvFT0a0dK07Qdye7lUibhAHQXUUO//oIdqXaxDWjsyRWszMJhoyu788UYjs1QDjABCafdGPw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050); SRVR:BN7PR07MB4897; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4897; X-Forefront-PRVS: 07954CC105 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39850400004)(366004)(376002)(346002)(136003)(189003)(199004)(97736004)(8936002)(53936002)(66066001)(476003)(6506007)(2906002)(11346002)(446003)(956004)(486006)(2616005)(386003)(186003)(6666003)(107886003)(3846002)(81156014)(16526019)(5660300001)(7736002)(305945005)(50226002)(8676002)(6116002)(81166006)(26005)(72206003)(25786009)(4326008)(16586007)(42882007)(6512007)(316002)(478600001)(110136005)(68736007)(6486002)(50466002)(47776003)(36756003)(44832011)(76176011)(51416003)(52116002)(105586002)(48376002)(54906003)(106356001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4897; H:ajoseph83.caveonetworks.com.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN7PR07MB4897; 23:/MZEXNu0GAMOPym4CkpAeVGFi7V8+e2y2J5yNjZco?= =?us-ascii?Q?EtlAHjBTW8/mXBdd2ptzMIekH1Wx/nLyMqGcI0t4uotwN/WJ9mI3PtZ3FDBN?= =?us-ascii?Q?T9xAJAspW8w0/fR9vkxUjRHDUrXIOcFhpmtDQMAwvAYes6laUyrzKJEc3IOh?= =?us-ascii?Q?eAEmSJ3MgllVp1imsTiPTplq3FTQpKbWgBhbG8tsP6Z0rC2MTuPIjWuLcHXt?= =?us-ascii?Q?dNe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ttWGcEmW1?= =?us-ascii?Q?vY9DMIIpr54BHfnMyfF7xXQ4OsiLO7RfvxrnkgLusgfUaXOKO6knc7aeuXJH?= =?us-ascii?Q?eIs6aEfFWbM5qvv5l8lXUIvy6Iq/RwEzreEkQAOxSg3K/0sePbJzNfMJCP0T?= =?us-ascii?Q?qPmFciaPf0tXO4DQrQ=3D?= X-Microsoft-Antispam-Message-Info: tfOiiVhEfg2zNWvQzwUkgI+hzhZWgrP3fERI/AmkqWzdrMM3nruc9I/42YAy9DD6MLjPG2WotlbQSFMrVyxCUzcVfsdy/TpMVhMhmoaBiOP8G25QqcNscpmCcNUaakq3tCKGBGv7OOjGIVdMxaMJSJZHvn9vWjvndL8GgDE1R4wCBrNBl+y+g8nTr0zqxEc6te2UUs8DNHRlxaiMzKnajG3Puv+CYYeDzzUPhThePl5xMNdSV4xKBKhu/YbmocrJFKeCnplpuV3cpvYU+Whw13NfjAEpFMnhFegBh+do50BusXwmdX5I9svwu5ep69hNmln53oODMlF+U30yX5bbZAdRz0fInZVAIA2m1WH1TdA= X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4897; 6:uflKnqGzs8z+dLLeNVN4MobPi7wVB3Ci3zAQ3WZrkRUF5jL++fiyMuxeXukijuubYoQpyf3jzfIzwBLfZu480k0FzQ35/t5ykqptQiKznJKx9u1fIhHF3n98nbEHJlwzXkj4M6RAPWujQatcWVTyDays12C9LM8Mudc4cbz3gj81s3NtVCMwYb369FNBcs8eAsFru7eANFQKWsbGWs4n51S0zE8zAL9QB1gRqx4F71AlvXXor+CB73YbU2O1JI6OA5dY+rKa8H4i37N+kdWhgDqVly1NhLnDFO6VjBdsTABgOGoGSPLnUa8ABN2BREJCwzArie3ZNB5W7n0zkBP5E2zPly7TjEDL0Ybh937MAJJaYuOgM7Z9BHTl4hsoBy1nUhNLF9O7E3Z/D9iJB/dXqsXaBlgPARIeaEH3HOEdr2LVCwpUsjla5OFq4nuSvwAiN/GCIonp8slVW2fcE6i/oQ==; 5:gKQ1OG/qlzoVdzfT1bMT9TCVW3xgi4tPE+3aq2QtPjrgUMA3HxNEN9mDois6L3SoZT8EK45KguvXls71bcrpnxBDwJYaJeisqLHfeeLROAsLuQ0iRvii5QgIrhr0an/QEtIFCI4spA0yLp96QkR6I86knkWuzHccUg+QOjl6IL8=; 7:EcVb0vSMtogvsfFFUnJqoY1i2r1dgttvG+UJp6BkbxFuJdQFNf7oNTgvBLsWs4MiM+hU8OSFA0WDbn1+8ZIz0dmXB3daGyxWxujtKx3GjkgUlaQ1YYuDDJ9Ex6kUSf7V2pl+tzZc1y9vL2VcvQfN8pXaj+wy+TssN6zVa5AS7QMnJXy2dxHxxDS9upEjDneq+iZkuXjYHxhu+k0oWIXPgkDwLa9WdduPA8j07npkbfWGXIffKDoWoL/0z79EIxT8 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2018 09:25:12.5110 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: afa8ce43-02e5-478d-1fc3-08d61a23fa7f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4897 Subject: [dpdk-dev] [PATCH 1/3] app/test-crypto-perf: add checks for AEAD key X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2018 09:25:17 -0000 Adding validation checks for AEAD key. Signed-off-by: Akash Saxena Signed-off-by: Anoob Joseph --- app/test-crypto-perf/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 5c7dadb..c9f99a7 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -421,6 +421,10 @@ cperf_check_test_vector(struct cperf_options *opts, return -1; if (test_vec->ciphertext.length < opts->max_buffer_size) return -1; + if (test_vec->aead_key.data == NULL) + return -1; + if (test_vec->aead_key.length != opts->aead_key_sz) + return -1; if (test_vec->aead_iv.data == NULL) return -1; if (test_vec->aead_iv.length != opts->aead_iv_sz) -- 2.7.4