From patchwork Wed Mar 8 09:45:27 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: 95022 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp2272076qgd; Wed, 8 Mar 2017 01:47:05 -0800 (PST) X-Received: by 10.55.10.142 with SMTP id 136mr6477477qkk.189.1488966424970; Wed, 08 Mar 2017 01:47:04 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 11si2518244qkn.261.2017.03.08.01.47.04; Wed, 08 Mar 2017 01:47:04 -0800 (PST) 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 A7298634CB; Wed, 8 Mar 2017 09:47:04 +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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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 15E8F634C6; Wed, 8 Mar 2017 09:45:49 +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 70CEE62D72; Wed, 8 Mar 2017 09:45:40 +0000 (UTC) Received: from mail-wr0-f174.google.com (mail-wr0-f174.google.com [209.85.128.174]) by lists.linaro.org (Postfix) with ESMTPS id B396060F57 for ; Wed, 8 Mar 2017 09:45:38 +0000 (UTC) Received: by mail-wr0-f174.google.com with SMTP id u48so19353666wrc.0 for ; Wed, 08 Mar 2017 01:45:38 -0800 (PST) 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=K+U5pQvwk8gptdfUayF+V/H7j0ZM1WUnOxKuejIOFWA=; b=Db7PsfAHer45bfO9dNammOYsjQcndjv31wNPJM/wIx8L2b/jQT+5QOMy19Adb5knKB sHpsSkUvoMFmkg4gLNgy0mNoaJu4LIjvEDbwZc6dVtaDZrUgOck3Xy0Ot0NdJ/GxXSYn C09jlK1oGHApBepIu1Yv7wTzkJqnYzyQFi+VlnauMNMRxp/hkOuQIZe3+m4nx5Y6I/rg IDnucSzRMhqZUb0K5uzSnE8L/oL2asheYb7+sIZRCWkJvgMgPcb4ueY+IYNZJMgLmHuk 48hakczPHk4vkne6/gf1keUMieOb6DzXvI60b8c8cjHxHVHr1CJv8Fpz0NxpjyK0z4Kq CzJA== X-Gm-Message-State: AMke39mnNjSEmpJLArCqWkrZbCFGec3ftSoBD1oDsQV8cEMETKCh0Dzvx35dxhX8bhDZ4N/2WKnOYg== X-Received: by 10.223.135.237 with SMTP id c42mr4306579wrc.139.1488966337643; Wed, 08 Mar 2017 01:45:37 -0800 (PST) Received: from forlindon.c.hoisthospitality.com ([109.74.56.122]) by smtp.gmail.com with ESMTPSA id x133sm22515934wme.22.2017.03.08.01.45.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Mar 2017 01:45:37 -0800 (PST) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Wed, 8 Mar 2017 12:45:27 +0300 Message-Id: <20170308094533.30795-3-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170308094533.30795-1-dmitry.ereminsolenikov@linaro.org> References: <20170308094533.30795-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [API-NEXT 2/8] 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 9af7ba3b..e1fc6d4b 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 @@ -1042,8 +1042,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