Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp36514lqc; Thu, 29 Feb 2024 09:37:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXadrEhfr9IIL3K0Z1om8JeXJyyGoZcpjCSnzDcVWJbzYSQQG/tsXZ0DVAjRDdwIpc/3Btf6OtHYhOzs0pyakFVKc9UT/XElQTpc0XbTw== X-Google-Smtp-Source: AGHT+IFTmSixufSy5Sc5E+q7DmB6bH4i9U7Ps/AU8pCj9bKi7HvLCiGbyWjJ2+q9+16DwNf3JFhN X-Received: by 2002:a05:622a:88:b0:42e:8b8b:8cb6 with SMTP id o8-20020a05622a008800b0042e8b8b8cb6mr3528876qtw.13.1709228231774; Thu, 29 Feb 2024 09:37:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709228231; cv=pass; d=google.com; s=arc-20160816; b=kz7oKBHHJNDddaP5ww/xjFiIe56N6TRX+IOWr83Hb/BadDPopTxvkkVyRuFCPZz+LE SBIiUdTF0tSO6+e9LDTJNrPM5NYnoFvDcSEaSJ/aQfgMFBVulacqhnVkifPXhX2bvVWh sE5hnh22eX5JryAAIrDG2OZoE/WTTIzyG4y1CjQ8fFmzoVv+jf9OJ9Rkix730ZIGCeE6 vFz13HRtJgKJ/9j0M4x46/A3FSpCbl/JzhfhaPaB6Cg0/4vERmJ1jpR9MXYilhRfK0O0 txoeDEmddNU9v+IW38De589+5rCdW1vluHkmkXgoloa3SolEHDa1aAJ5Ngzxow0p52Qy RtRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=8NCFY5/xqwqZ+BzOYm6QBuVWVdJZDIeZ/gZcGzEqZ/8=; fh=tMWC+qvzhpfUrp4PDEJDlKp8xKkkkxzuO8sOeiVou/s=; b=aSdfH8AFrx4enQ5UjMcXKUULyy4KaODw8dkI+zahQGbzIjgwbGzh8Usv9vHmNsSi4t Q1K4a1yTe/HpdrDrJ1sKg6tQEHZgeSaD8Jfoyy7XEGh0ckxuDWMfF2JY+MDJ5L1LQfP4 3w2eHlEIrL7hAs4/xKk5J9OCKslLpoviO9+yVq7wGFceI6JFKoR/bq3AGqN7mmrSz0GR il64sA9FfeUqfT+exssmyImoLX0JN6TCYnIlDb2uXBcF9ZznsD9vr+rkipQV5HDXnLzd ymIs6jlElOnrlzK62L9Z3jpOXUqI1PMql/UfS9A5QA8IIEdg4/wsZvD54sGDGVvgr43r lvrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bGFQlK99; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-crypto+bounces-2402-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2402-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y16-20020a05622a121000b0042e770d48dfsi1989716qtx.35.2024.02.29.09.37.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 09:37:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2402-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bGFQlK99; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-crypto+bounces-2402-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2402-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8250B1C2159E for ; Thu, 29 Feb 2024 17:37:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A46370AE6; Thu, 29 Feb 2024 17:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bGFQlK99" X-Original-To: linux-crypto@vger.kernel.org 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 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 Content-Transfer-Encoding: 8bit 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); -- 2.43.2