From patchwork Mon Apr 3 11:42:06 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: 96612 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp57640qgd; Mon, 3 Apr 2017 04:43:43 -0700 (PDT) X-Received: by 10.55.176.198 with SMTP id z189mr14624273qke.14.1491219823877; Mon, 03 Apr 2017 04:43:43 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id s64si11646831qkh.299.2017.04.03.04.43.43; Mon, 03 Apr 2017 04:43:43 -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 9775863DE0; Mon, 3 Apr 2017 11:43:43 +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_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 195BE63DBA; Mon, 3 Apr 2017 11:42:27 +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 BC19263DB2; Mon, 3 Apr 2017 11:42:21 +0000 (UTC) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by lists.linaro.org (Postfix) with ESMTPS id 94C6B6097B for ; Mon, 3 Apr 2017 11:42:18 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id h125so71112299lfe.0 for ; Mon, 03 Apr 2017 04:42:18 -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=K+U5pQvwk8gptdfUayF+V/H7j0ZM1WUnOxKuejIOFWA=; b=fvPQLonSy5BiCdv+mXbJZdtqEvVGBbr71PXaKuC/fFFqPwnAyean8uf85ASCRyZu8P VKDg9RjC9NpkSMEDIMhFOVxCbQw93kxz8FUozd9tIDWX36l/Nolx/AV7qsQuwJKLuRis wgN62DSzGmOufo1Rsh6TzsBdP/E/UDekGSTGzoEDH5NGmi02YmoXniwMzyFMAez/j1Iw l8jeUyUw/e4xAQefk2g2lJe+23Q1yj2Bbdz/kj6+6FJt5WzvDch6KmrUWgS7euquCedb hLAsfjH8yxxI+zGfwYtDKCFdPcHZCtBZnAEZy/EWRvuYayGHg7Ci/SuezFUq7VzVRDzW o4LQ== X-Gm-Message-State: AFeK/H2TzBNj/0ZwNEfrQmwORW/qa5dc6oimqO3TkleCXYcXIsc7ny6lkp8xgk08cGF/rHkyuvyqCHrB X-Received: by 10.25.21.37 with SMTP id l37mr5206300lfi.146.1491219737260; Mon, 03 Apr 2017 04:42:17 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([188.162.65.22]) by smtp.gmail.com with ESMTPSA id e124sm2422618lfg.8.2017.04.03.04.42.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Apr 2017 04:42:16 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Mon, 3 Apr 2017 14:42:06 +0300 Message-Id: <20170403114212.23355-3-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170403114212.23355-1-dmitry.ereminsolenikov@linaro.org> References: <20170403114212.23355-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [API-NEXT v2 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