From patchwork Thu Nov 3 04:27:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Elliott, Robert (Servers)" X-Patchwork-Id: 14626 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp313197wru; Wed, 2 Nov 2022 21:31:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7HQQWzkE4mu9OHEF6OL2CYsddJmEdNKUxt5nlM5Et6rnJ435iBKudOiOGtq/VYCzpyfcJ4 X-Received: by 2002:a50:9ea6:0:b0:463:c701:64de with SMTP id a35-20020a509ea6000000b00463c70164demr10803859edf.63.1667449885584; Wed, 02 Nov 2022 21:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667449885; cv=none; d=google.com; s=arc-20160816; b=UHVzYQXlJAXeQaXzsVvK8CfYWCMD6snB3ZM2VJonm45M8FJGzD+gkvH2VYPfxkuMGL v06RpkYiAb3myNXpTrWKpSzs2dVYl0lvqYwigHU3UTALmeG10NZ/1E4MH9UZva5lpvgf F/1WzIMu1UIGZBinURPyzWWLerxgIYxLnfnIWka9DcxmSbu4pTkZu1KzYaMKTk42qQhA vGQTewS+cl+6RvSYr//Lh4Kc+qoOsYHw24pZGGbwybNonNaBpDNkTwYc6E6N/oF5dQyQ wbys2MZAjd6ZD+L8v0FvVcTT+lfjXYoPopRax5USlbO9iR7009fS+Q+2Li65CTEW0MKF pVKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Nj/d5OC2AY6b4soOh7HzxmFB+I7wGPKsbzfoKqMoiAo=; b=BjbV15r+KvCfyBWOQ22eyzkRKctGCZ0Q9l4CUZ9pgOQKYdEv7dqxlQfi2Da5a8MlyF hU3iHIWY9zRMw6zzZoQTZ9a6OCatNy2ly0zlruyvtNasZndhh+dLrFuD0CTDYiAPTYCS nsqrpV2pd2weYsnQxXrZVNYKFhz+Tc5vN8DPUuaIxNDNyI7wF3iiX+SiX1NOKdtIbQ4K cS74ZuidRZXxunfDA0jW+G9VkJ2sXcktfcb+IMKkrF03XA+ydcoKkQRIajJfC1W1pBex RDA9pE/ftkT7Hr3EuvM/kNJD9+QZO4mJBPrjMVPzB5RVDHFg1epdVUs8L8r6B3o9ZbRr SzbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=dcZIzfgH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m22-20020a056402431600b0046356ff4d4esi16900135edc.593.2022.11.02.21.31.02; Wed, 02 Nov 2022 21:31:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=dcZIzfgH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230296AbiKCE2o (ORCPT + 99 others); Thu, 3 Nov 2022 00:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbiKCE22 (ORCPT ); Thu, 3 Nov 2022 00:28:28 -0400 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7F4911825; Wed, 2 Nov 2022 21:28:25 -0700 (PDT) Received: from pps.filterd (m0150244.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2A3222LR011922; Thu, 3 Nov 2022 04:28:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=Nj/d5OC2AY6b4soOh7HzxmFB+I7wGPKsbzfoKqMoiAo=; b=dcZIzfgH1l93vqE7+6rDgstvXPBLtHOuilrKqVk55dNojRDTOyBHzDuDBNNj3KvrgpKz MeJbZzkHCJPHuVedB/Wrg4JJJN2HS/PlmfR2d+LCsLYcMoFkQf79hVosI5YGADknnAsf La3DlR5jiHyqAuVXseebdxQOV4/dFUEf+MEEa0MGI4+zn97a7SefXlfIBKVtG0Xy/l18 OV4S/cg3KE+gsRpQkO5CeK0rfWqcAATGqLvwsX5qknNirr6k0NLseENiunFUQHeX87LX 6Ok4VqjH0+1ZCOHpZ9ugdOAOz8GAr0F+UTWKhN3LOaHuyAmeuGoN6Txb/dNEcgRCGfaE PQ== Received: from p1lg14880.it.hpe.com (p1lg14880.it.hpe.com [16.230.97.201]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3kkstj5xsy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Nov 2022 04:28:06 +0000 Received: from p1lg14886.dc01.its.hpecorp.net (unknown [10.119.18.237]) (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 p1lg14880.it.hpe.com (Postfix) with ESMTPS id 28E418040FD; Thu, 3 Nov 2022 04:28:05 +0000 (UTC) Received: from adevxp033-sys.us.rdlabs.hpecorp.net (unknown [16.231.227.36]) by p1lg14886.dc01.its.hpecorp.net (Postfix) with ESMTP id 9C765808EB8; Thu, 3 Nov 2022 04:28:04 +0000 (UTC) From: Robert Elliott To: herbert@gondor.apana.org.au, davem@davemloft.net, tim.c.chen@linux.intel.com, ap420073@gmail.com, ardb@kernel.org, Jason@zx2c4.com, David.Laight@ACULAB.COM, ebiggers@kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Elliott Subject: [PATCH v3 02/17] crypto: tcrypt - test nhpoly1305 Date: Wed, 2 Nov 2022 23:27:25 -0500 Message-Id: <20221103042740.6556-3-elliott@hpe.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221103042740.6556-1-elliott@hpe.com> References: <20221012215931.3896-1-elliott@hpe.com> <20221103042740.6556-1-elliott@hpe.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: rpJkAG084Dow0BwxjEcq96z25pFW1UDD X-Proofpoint-GUID: rpJkAG084Dow0BwxjEcq96z25pFW1UDD X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-02_15,2022-11-02_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 clxscore=1015 bulkscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 adultscore=0 mlxlogscore=908 lowpriorityscore=0 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211030031 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748447931242270793?= X-GMAIL-MSGID: =?utf-8?q?1748447931242270793?= Add self-test mode for nhpoly1305. Signed-off-by: Robert Elliott --- crypto/tcrypt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 4426386dfb42..7a6a56751043 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1715,6 +1715,10 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb) ret += tcrypt_test("crc32"); break; + case 60: + ret += tcrypt_test("nhpoly1305"); + break; + case 100: ret += tcrypt_test("hmac(md5)"); break;