From patchwork Thu Feb 29 17:36:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladis Dronov X-Patchwork-Id: 13577471 X-Patchwork-Delegate: herbert@gondor.apana.org.au Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64C5E70AFD for ; Thu, 29 Feb 2024 17:36:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709228190; cv=none; b=dwnbhRUQah8/so9XhgSX2XEpVFK32lGDy0gyn1EYEHI1vvJ4NLIPtNGH5jTyOdP6Gc7eDgbO2RWijUEjpXkRahpuZPZRw66H21FuaZBdSD/sUMfcd6+6qCJTbPia/kuyFcV8NMmQUzOFZq0OfM+wOJB1m7vzfd8kbZceJ/GI924= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709228190; c=relaxed/simple; bh=Nfy+FvhiVO6FRr4RGFIgCjBGC56X8Ck24EWdzRnn+CA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-type; b=DIgkCPoYaKbdQ/3CyJUJovTLEOtz8PjQx4LEYh5zBXEhjmO1QJrLm1fhDj1B3nfFziHmAx74ijqaYaqOtcHNZ09kkaXekw0ECuh25KYSPFIaIiOYOV2JNEEkeB/OfGDIZdzupawOfmYiuvTTRETtoBbBFvmKeVFVi+GCNoT+iNE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=bGFQlK99; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bGFQlK99" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709228187; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8NCFY5/xqwqZ+BzOYm6QBuVWVdJZDIeZ/gZcGzEqZ/8=; b=bGFQlK99b/NVGjGbi755aPsE57bxs4Ah041Zs76MD/2rcAPn7SDQcCJkrVRhhvL9V6BSgB N5yroz8FFRqEF+1tlEhmk8fHsY40xg71w5SCjF4U6cd8yn+z9gNKHrgMTowJt5rWcLq6y5 3SWiNmzj1sWuvjzC1KhVc5s/Q5fMgpQ= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-562-FaAciST9MoWocjVqHzlTlg-1; Thu, 29 Feb 2024 12:36:25 -0500 X-MC-Unique: FaAciST9MoWocjVqHzlTlg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1C8701C0CCA5; Thu, 29 Feb 2024 17:36:25 +0000 (UTC) Received: from rules.brq.redhat.com (unknown [10.45.242.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7C6B220229A4; Thu, 29 Feb 2024 17:36:23 +0000 (UTC) From: Vladis Dronov To: Herbert Xu , "David S . Miller" Cc: Nicolai Stange , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Vladis Dronov Subject: [PATCH] crypto: tcrypt - add ffdhe2048(dh) test Date: Thu, 29 Feb 2024 18:36:03 +0100 Message-ID: <20240229173603.10258-1-vdronov@redhat.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 Commit 7dce59819750 ("crypto: dh - implement ffdheXYZ(dh) templates") implemented the said templates. Add ffdhe2048(dh) test as it is the fastest one. This is a requirement for the FIPS certification. Signed-off-by: Vladis Dronov --- crypto/tcrypt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index ea4d1cea9c06..8aea416f6480 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1851,6 +1851,9 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb) ret = min(ret, tcrypt_test("cbc(aria)")); ret = min(ret, tcrypt_test("ctr(aria)")); break; + case 193: + ret = min(ret, tcrypt_test("ffdhe2048(dh)")); + break; case 200: test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, speed_template_16_24_32);