From patchwork Mon Dec 25 17:00:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 122696 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp59673qgn; Mon, 25 Dec 2017 09:01:06 -0800 (PST) X-Google-Smtp-Source: ACJfBos45WgDel2u2ZUUm9cWRgVLIwUKng/jQVliV9lPeasXvQ2gCp4oI24SQPM9W5mVt7fE+G7x X-Received: by 10.200.27.36 with SMTP id y33mr32366614qtj.291.1514221266013; Mon, 25 Dec 2017 09:01:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514221266; cv=none; d=google.com; s=arc-20160816; b=Mj0za4eFbfnQTxtiwuGvEPOvZFqzJjAZwxaxp7oaBAKNRH5QXGJpIajL8Qgm3xvOlA 9CoXhBQjMCXsvawOt6B1RzGd11xmi0tfQJ5zf5aCWYSN1YpuFdRpTaPi5HDxMJC45sn4 yxw3BDWdh+rDe3iuA9239ZFcWCFq4YK/e/7l0Rbc7jx0wgEOz+4AG/LzbWy2vALhEaza LhK0jQAzk1FhSGPBF3oIHRUx3enwQUEbuWvyW5wAPaS81Xi8Wp3aW+PxDjdE3wl6eurU k11m7IGz5h9OzHpmyrwASuz1wt39l+CwoH61iHKJAxQwxwbE9H8zezJSsu6ibn0WREW/ yIjw== 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=Cy6pUZCCPO5Z1OxlN2JNZFu+KcGaVfSU/11y8cfyjqM=; b=Sn4YLrsTMc1i0Xr7ZPRnn6yGkMwwWH7cZjSj2ux69yQ9wGVfybJUK8hKH+4it5Owo4 vwlJPC8FHTYNzAvF+gd8WPWeWvv0xWUMFiFdGa7PuXk4O+lbpd0eUo5PrzVi1bmArze/ 9+t2+KPY4SLAnNl11ndnutZkykD9NsuCTYeASmsn1ymdHhB9UkCQ8rlOZu9BRL/mWILy 1u3G88h2+JC2zLzcicA9ICfiR01D2jCC6pH2eNeBjtoYGOlEKorV62Ui1BKa3cVN8rxU yu8llqMYqP6/v5G1L1vCHp7vyg5VK6cAWvqcrudbWszYnEbg1qJadeN7rf0d3vBK1dWy 2rtw== 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 x55si1635086qth.63.2017.12.25.09.01.05; Mon, 25 Dec 2017 09:01:05 -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 B8FFF60940; Mon, 25 Dec 2017 17:01:05 +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 543706038C; Mon, 25 Dec 2017 17:00:29 +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 E11E4608C9; Mon, 25 Dec 2017 17:00:21 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id BAD4D6084A for ; Mon, 25 Dec 2017 17:00:17 +0000 (UTC) Received: from mxback15j.mail.yandex.net (mxback15j.mail.yandex.net [IPv6:2a02:6b8:0:1619::91]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 7EDBA56022F1 for ; Mon, 25 Dec 2017 20:00:16 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback15j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id GvgugcYOg9-0GF0Xl7G; Mon, 25 Dec 2017 20:00:16 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id eIe5mGadxk-0FtuFsJ4; Mon, 25 Dec 2017 20:00:15 +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: Mon, 25 Dec 2017 20:00:11 +0300 Message-Id: <1514221211-7675-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514221211-7675-1-git-send-email-odpbot@yandex.ru> References: <1514221211-7675-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 367 Subject: [lng-odp] [PATCH API-NEXT 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 367 (lumag:crypto-untested) ** https://github.com/Linaro/odp/pull/367 ** Patch: https://github.com/Linaro/odp/pull/367.patch ** Base sha: a5f07dbf95f982b7c5898434e56164ff976c0a0f ** Merge commit sha: 0f2debefe973066bf83f4d93a551f16f758b0c14 **/ 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 ddf638001..3f1e4f95c 100644 --- a/test/validation/api/crypto/odp_crypto_test_inp.c +++ b/test/validation/api/crypto/odp_crypto_test_inp.c @@ -556,12 +556,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++) {