Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1146605imu; Wed, 16 Jan 2019 13:35:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN4B7l8jM2pepXov0FQiOyKl49CYcIjIEcZBCtWB0v0BzXkmVQF+xYut9g6Va6wK8UZTIeS3 X-Received: by 2002:a17:902:50e3:: with SMTP id c32mr12026828plj.318.1547674556333; Wed, 16 Jan 2019 13:35:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547674556; cv=none; d=google.com; s=arc-20160816; b=Ma7O3ZyDOaE3h09sZ+C5UXkESNBK8bv275jbaBiLgHSBVyCWDrD5/JOoOhgrthLlvF 6HgFMoJ7t5v9CeIFzRzZUHyGU3aYvIOwKK04cZY961Db9dKFwU8DFP7Z3zTVyqhJLt8E t2AmtKBmQouYdfqIiuB8kJ+AUKaVKejLcBHSgwGu4gux8CAjvfNCfj+ZzIQW9UU0+2/3 ZqwHKfedrH0jIo2oQxf26+FYj1Ujzrcxwe/LCessO4iR5yAbm2oI/hOVC8xQiaFWPpUT PCJ+3mNYD4BZbIxmhFFE950vE4eXgNAyYimTCsdSvkasl+3Ih10u+3+6EOEA7kX11vwF 9W9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z1JSnWMAdIBaOoX07NP+bwCKYNTj6YxEKLWL5bKCEIo=; b=JOoJRGDJvHNQKcx/6FyCI/VlfAUEgY4SEJesxhu+n1mEsuA23gG1b4Hv8A3uyGfWo7 tG/UpwgsuPuWk4W6WOn8IzVz4Ph39ZwmsgL/HzuPTxMYAM6TevSHezT9OjVPjvxRWnx+ l7e2Tu/IIo32rZ+u6GfnRq17eNPNtPtAIOqlm2zL4jba/xNggE4zUS9goLpgTV0s6oXX xMW9kN9Pvm2QB4d4WiqVZJgXs9GHnZR2AolA/0c9gZEryK3ixuq7CFLdc5Zdc5BR2xX3 Z7aeujRu59avzajbTdGaAm2yU5UAwhMNasedX3faFJUZD2BRIpjB8N/uW90wgWEPtrhF LzBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=R9zxaQ4Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u20si7736781plj.129.2019.01.16.13.35.37; Wed, 16 Jan 2019 13:35:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=R9zxaQ4Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392431AbfAPLMG (ORCPT + 99 others); Wed, 16 Jan 2019 06:12:06 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.52]:16829 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730526AbfAPLMF (ORCPT ); Wed, 16 Jan 2019 06:12:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1547637120; s=strato-dkim-0002; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=z1JSnWMAdIBaOoX07NP+bwCKYNTj6YxEKLWL5bKCEIo=; b=R9zxaQ4ZbtKJVeqA/LKP9r9bKj1vKShb2M/oJuPrsV75zhxLtG+Al1L1b0WFPi06MT ImFWZr4owgGcN3Ro+D6P954QjNBjkDbcbbQWIM/PiNeez5zvDVtDYrj2CBuIqGz5bua2 FF9mwjsheMf9M1LqZOvW/RSnjGTHix3aIwprCqNLPQ4tb03fgdCm+rQ1r/Z961EwjQec VfE4MdFQQruwKSs9Y9TVT90Bd7ocwigoYYgeS29ltWOhS+oVWmEc3yb2kgm6DQ8v/eRt 4mYWaxfn5q2kySDDPjFExHDzowB4CRJj7Ptci/7gP28+KHRz1y4YGQ073dprX8NnIQZi SUHw== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9yWgdNs16dfA/c7fW145n" X-RZG-CLASS-ID: mo00 Received: from positron.chronox.de by smtp.strato.de (RZmta 44.9 AUTH) with ESMTPSA id 309bcfv0GBBD4NM (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 16 Jan 2019 12:11:13 +0100 (CET) From: Stephan =?ISO-8859-1?Q?M=FCller?= To: Herbert Xu Cc: Eric Biggers , James Bottomley , Andy Lutomirski , "Lee, Chun-Yi" , "Rafael J . Wysocki" , Pavel Machek , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, keyrings@vger.kernel.org, "Rafael J. Wysocki" , Chen Yu , Oliver Neukum , Ryan Chen , David Howells , Giovanni Gherdovich , Randy Dunlap , Jann Horn , Andy Lutomirski , linux-crypto@vger.kernel.org Subject: [PATCH v2 6/6] crypto: tcrypt - add KDF test invocation Date: Wed, 16 Jan 2019 12:09:33 +0100 Message-ID: <8600018.3ZaGsXI4pz@positron.chronox.de> In-Reply-To: <2082192.jPI8ve1O8G@positron.chronox.de> References: <20190103143227.9138-1-jlee@suse.com> <9733066.Vrs4h5eWcW@positron.chronox.de> <2082192.jPI8ve1O8G@positron.chronox.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable testing of the SP800-108 and RFC5869 KDFs. Signed-off-by: Stephan Mueller --- crypto/tcrypt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index e7fb87e114a5..5606e59e80ec 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -2054,6 +2054,14 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb) ret += tcrypt_test("cbc(sm4)"); ret += tcrypt_test("ctr(sm4)"); break; + case 192: + ret += tcrypt_test("kdf_ctr(hmac(sha256))"); + ret += tcrypt_test("kdf_dpi(hmac(sha256))"); + ret += tcrypt_test("kdf_fb(hmac(sha256))"); + break; + case 193: + ret += tcrypt_test("hkdf(hmac(sha256))"); + break; case 200: test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, speed_template_16_24_32); -- 2.20.1