From patchwork Wed Nov 16 04:13:20 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: 20693 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3083868wru; Tue, 15 Nov 2022 20:15:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jJr0FZiKV0Xay9I98+Mi3I2oQvcgGNRMvPlhmHYXFUlZTQ8bfjhNuh0Vw1SBseZWh1CFz X-Received: by 2002:a17:903:40d0:b0:182:2589:db21 with SMTP id t16-20020a17090340d000b001822589db21mr7130156pld.151.1668572122531; Tue, 15 Nov 2022 20:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668572122; cv=none; d=google.com; s=arc-20160816; b=xipSFaeyimzoIISpe1s3sIk+6nWfnc/f9LicITFpnVaJm+3mG/zIOxDJ91ygBdqIYC pIw+S+IauYl6H4ZRc8LDlfpiIxVO2M4nF5/OFWrPlx2zfcBDR/tNnFIs7OYx2DcEQWZN LG9iJr/o8xppzxQanYfYcCmDAVNJc+BpRqIXL+ECRMHd1sVQE5mT4CtNlm3C9fgIAUZT V3pxJTY4kRagkGHkliX7iFYuUJPWJg2v8DQqnGK3iSA4peUyWbHQYua4woLzG9s7mRgU T0ovvLbv/V5BjDCK/387bCbf1HdpJ0IjOrhBOoHqVEYAE1lULhHlaEgF2UIyCLa1HrDe 4zBg== 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=CY/C6YFYVZFR5UoI13Eo6J2yfeNTSSmCxRx7EfVHqbg=; b=Pf/OZki1GrDut5oilAj+SASskIVkaVTmM19ol9UyTwf+YvoFIaBEHiexZHappu030j nuETGDgUvHWLP0tN+sAVL8oOL3YEU9A1Vh4Mm8Uc/fcxw11YNebQVSmXaQnzlRO52Ogz YL3yfuZlpPxKxHHLBs5579t+c12TrQ0nx2KAjL7m0yAg5FtofZ3haRSTog99kWPcJXtw 384XEZCSciA9opo6Zk6OnI3HBZQafsRsreG4e4lfB2SnQZzexBVeybxvXu+Aa50nRoT9 qG3vIGyxCkfCRoNS72URJRcezn5crMUHGmGpSa4d4ODFlyMwxq/6V8dWeIw6e+AJeyTd TCyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=fM9h6dJy; 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 t4-20020a170902bc4400b00176d22a068csi13544831plz.515.2022.11.15.20.15.08; Tue, 15 Nov 2022 20:15:22 -0800 (PST) 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=fM9h6dJy; 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 S231734AbiKPEOS (ORCPT + 99 others); Tue, 15 Nov 2022 23:14:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbiKPEOM (ORCPT ); Tue, 15 Nov 2022 23:14:12 -0500 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D169C2CDCC; Tue, 15 Nov 2022 20:14:11 -0800 (PST) Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AG3cx7C007106; Wed, 16 Nov 2022 04:13:56 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=CY/C6YFYVZFR5UoI13Eo6J2yfeNTSSmCxRx7EfVHqbg=; b=fM9h6dJy+AdO5AcTEYyp6YpcnBnk9ZN608lQM0gqT9OkHvlZLsP8W80kZtnfMBDgCjlg VxrYDnf0YEf1WI298AGyfOnU+bsqxb5eycRuflv1doUoYRQjxRdiyrFVaCkxxt9JnVMu WS+3LIbq1PYZs5V69LvVRQwUkGm4pSsW5Zyaf6XAQPxSkidvlpNS04/AIywvaYXcHUTj KiczeHOKz4jQeZ5m7x5Tjp/3g3VaMub0JPIsVJB9Qn/V2paJSTG/xqe2M8KkkM9BQ3+n aJAJqRjWPw00zxYBBMEQGoJ4A4kXLod++NHzv85XUXOa01cgdkoeWK0VZ2HqNktxMD8p jQ== Received: from p1lg14881.it.hpe.com (p1lg14881.it.hpe.com [16.230.97.202]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3kvr5486sb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Nov 2022 04:13:56 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (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 p1lg14881.it.hpe.com (Postfix) with ESMTPS id E8F04809F56; Wed, 16 Nov 2022 04:13:55 +0000 (UTC) Received: from adevxp033-sys.us.rdlabs.hpecorp.net (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id 6BA9E802A17; Wed, 16 Nov 2022 04:13:55 +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 v4 02/24] crypto: tcrypt - test nhpoly1305 Date: Tue, 15 Nov 2022 22:13:20 -0600 Message-Id: <20221116041342.3841-3-elliott@hpe.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116041342.3841-1-elliott@hpe.com> References: <20221103042740.6556-1-elliott@hpe.com> <20221116041342.3841-1-elliott@hpe.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 4A3ZRqi_ZK-xEomLs7JnoQpwLFXvTwK7 X-Proofpoint-GUID: 4A3ZRqi_ZK-xEomLs7JnoQpwLFXvTwK7 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-15_08,2022-11-15_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 bulkscore=0 mlxlogscore=896 phishscore=0 impostorscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211160029 X-Spam-Status: No, score=-2.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?1749624682040217119?= 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;