From patchwork Thu Jan 4 01:00:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 123384 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp10837578qgn; Wed, 3 Jan 2018 17:03:47 -0800 (PST) X-Google-Smtp-Source: ACJfBounGIaCMSQYA4sAfm3qwWYSOymP6n0pIbHRx6LAysmHfPGKVhBqyCMyODypO2UieLZD8ygD X-Received: by 10.200.56.75 with SMTP id r11mr4225900qtb.65.1515027827622; Wed, 03 Jan 2018 17:03:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515027827; cv=none; d=google.com; s=arc-20160816; b=vWsfKve6UQiw/xwqM/u1GNKDaAHak+YirFEMUOG+78Cz4/eoH4oWwQT2VAvKZrA+nF 8O27MEB0QCP1vBBOj2mFAA2YzDRVOl16OOb/MZe6yTMF74KXR7wJMzIfqKgcWeDTHOVT Kdf8rBVmaosapw66IsngOotTsihteTsPYqe6MkjhF46IBVTnY0FpRzlKQ2a9lOPtjMnS fc4c4rlouDHKyW/Pb4uyza6tYBE7/hgiwBcEFXC0ghtPqIAcSts0Glf0CO5WxamqdUub VZqL2YiMkTvwKhwyTFFcKQEFMjCdfa2G6HH9TsLU8OMwLs3dsLn70cdZnc3OgYagQ1ke HVxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=rQEWCwsK7MzSazNUziwxA1aT79oYDc63guRtUp184Os=; b=X6o3WgNYfx6unzMD7GyEOO/bqAy9ZUSaBs5CldN5ICrVd4hUl9qO7ksZyEVMIQNFNe lTWSgHoKuCG1j9ZCN3b2okJ8WGN/WSXG3fQ6jFocVisxm/nu6WW2XOT39skyUIyvi0g1 udZR/4R+XpCHEoRMPWcj1hvxia5EJ5G87g6GZQN9Sva7zEP8d20R61Yj18RlIqm3N5ye Ob+MInmafOY7lxt7PmDfM89hMCY0f98XkEMQyO8ucWggoMwuDOVOh0o96Q6skWYFXQYG fYc6v2t7pgUPod7BcY+VkTcTM+OUR6JeWQV6B+4u0TFw4FwWUc//P8FU7Grf61AZDZkY cGIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id f96si1282954qtb.141.2018.01.03.17.03.47; Wed, 03 Jan 2018 17:03:47 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 496BA60B52; Thu, 4 Jan 2018 01:03:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id AD3A4614E3; Thu, 4 Jan 2018 01:00:36 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id C70E560B52; Thu, 4 Jan 2018 01:00:22 +0000 (UTC) Received: from forward101j.mail.yandex.net (forward101j.mail.yandex.net [5.45.198.241]) by lists.linaro.org (Postfix) with ESMTPS id 13249609AA for ; Thu, 4 Jan 2018 01:00:16 +0000 (UTC) Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward101j.mail.yandex.net (Yandex) with ESMTP id 8366212427DC for ; Thu, 4 Jan 2018 04:00:14 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 2SnIusR8jC-0EoK0TvT; Thu, 04 Jan 2018 04:00:14 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id usa9bqR2kM-0DvibxCp; Thu, 04 Jan 2018 04:00:13 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 4 Jan 2018 04:00:10 +0300 Message-Id: <1515027610-31156-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515027610-31156-1-git-send-email-odpbot@yandex.ru> References: <1515027610-31156-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 379 Subject: [lng-odp] [PATCH v1 4/4] validation: crypto: don't output untested cipher for NULL cipher X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov AES-GMAC adds synthetic NULL cipher capability with IV length = 12. Skip CIPHER_ALG_NULL entries when printing untested messages (as untested entry does not really mean a thing for NULL cipher algo). Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 379 (lumag:crypto-untested) ** https://github.com/Linaro/odp/pull/379 ** Patch: https://github.com/Linaro/odp/pull/379.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: 36b032fa07bb9b29a0c8f774c2ce76da96b4d653 **/ test/validation/api/crypto/odp_crypto_test_inp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c index 8d1489ae6..ad9784a69 100644 --- a/test/validation/api/crypto/odp_crypto_test_inp.c +++ b/test/validation/api/crypto/odp_crypto_test_inp.c @@ -559,12 +559,16 @@ static void check_alg(odp_crypto_op_t op, for (i = 0; i < cipher_num; i++) { cipher_ok |= cipher_tested[i]; - if (!cipher_tested[i]) + if (!cipher_tested[i]) { + /* GMAC-related hacks */ + if (cipher_alg == ODP_CIPHER_ALG_NULL) + continue; printf("\n Untested: alg=%s, key_len=%" PRIu32 ", " "iv_len=%" PRIu32 "\n", cipher_alg_name(cipher_alg), cipher_capa[i].key_len, cipher_capa[i].iv_len); + } } for (i = 0; i < auth_num; i++) {