From patchwork Tue Apr 25 01:41:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 98159 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp1738896qgf; Mon, 24 Apr 2017 18:43:25 -0700 (PDT) X-Received: by 10.36.125.83 with SMTP id b80mr1037823itc.81.1493084605287; Mon, 24 Apr 2017 18:43:25 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c93si22324218ioa.164.2017.04.24.18.43.25; Mon, 24 Apr 2017 18:43:25 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id CAAF960D27; Tue, 25 Apr 2017 01:43:24 +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=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, 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 70DC760CE2; Tue, 25 Apr 2017 01:42:08 +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 CD80660D27; Tue, 25 Apr 2017 01:42:01 +0000 (UTC) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by lists.linaro.org (Postfix) with ESMTPS id E5A0760967 for ; Tue, 25 Apr 2017 01:41:58 +0000 (UTC) Received: by mail-lf0-f51.google.com with SMTP id t144so83119028lff.1 for ; Mon, 24 Apr 2017 18:41:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=MHhkz42Ew6yJ7cA7UqcFWB95Zu7URMLIjacqU+3BAlw=; b=JfteNuqLTGnMJPnndCCUIMxMmthtaMJPHcR8JBQys9B0L0KpOgH1iWaQ4oj/4CrbH5 X6nu0J12yYQwiyjK6DkOpr7aygfGLrHu0qE64Ozf6g1a3DNoUuz/ec99/+JE5ZuFv/4u dngQvybHvFyj5XIs232YnQVsWVMEe0r6ra6elpOy+UVQXkscwLDNcoOepRBGBGFnO4qT JFaM9gANsXdvj7BCk3woXUy/uFaIwOMB5nQTOWREgv+a4omqkX/dnIdk7xfg+Rf3FLwX WqV7GH2j5/xYQ92FGOFA6r9R37b7OCfJK527N7mzsO/cKJfNyzXYoE37+5L3QxTbPNfl LAbw== X-Gm-Message-State: AN3rC/51CmuExJdPHxcoIAq04FqKioebOPryob/9P7yNo6q4JtbNxVLy g7tiE/IXU9/3e0yrMNXd7knp X-Received: by 10.25.153.137 with SMTP id b131mr8832089lfe.114.1493084517561; Mon, 24 Apr 2017 18:41:57 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([188.162.64.156]) by smtp.gmail.com with ESMTPSA id 75sm1044825ljf.36.2017.04.24.18.41.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2017 18:41:57 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Tue, 25 Apr 2017 04:41:50 +0300 Message-Id: <20170425014152.3112-3-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170425014152.3112-1-dmitry.ereminsolenikov@linaro.org> References: <20170425014152.3112-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [PATCH 2/4] validation: crypto: correct comment for HMAC-SHA-256 tests 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" Comment for HMAC-SHA-256 tests talks about HMAC-MD5 and respective lengths. Correct it to mention SHA-256 and proper digest lengths. Signed-off-by: Dmitry Eremin-Solenikov --- test/common_plat/validation/api/crypto/odp_crypto_test_inp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.11.0 diff --git a/test/common_plat/validation/api/crypto/odp_crypto_test_inp.c b/test/common_plat/validation/api/crypto/odp_crypto_test_inp.c index 0909741d..a415f5c1 100644 --- a/test/common_plat/validation/api/crypto/odp_crypto_test_inp.c +++ b/test/common_plat/validation/api/crypto/odp_crypto_test_inp.c @@ -1034,8 +1034,8 @@ static int check_alg_hmac_sha256(void) return check_alg_support(ODP_CIPHER_ALG_NULL, ODP_AUTH_ALG_SHA256_HMAC); } -/* This test verifies the correctness of HMAC_MD5 digest operation. - * The output check length is truncated to 12 bytes (96 bits) as +/* This test verifies the correctness of HMAC_SHA256 digest operation. + * The output check length is truncated to 16 bytes (128 bits) as * returned by the crypto operation API call. * Note that hash digest is a one-way operation. * In addition the test verifies if the implementation can use the