Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3371785rwb; Tue, 16 Aug 2022 01:30:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR5HiaqHSNFzz8ndfObxXR/B2jc2IIxA1F786Rut70SAw9Gd8M2gd04tPN+iRCv2rbn4ER+v X-Received: by 2002:a17:906:93fa:b0:731:a80:2444 with SMTP id yl26-20020a17090693fa00b007310a802444mr13003229ejb.121.1660638638013; Tue, 16 Aug 2022 01:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660638638; cv=none; d=google.com; s=arc-20160816; b=G4RDq9Erx7eEXHtoD7Z6r9OQiLypIvt1nEBPlY1JecwET78W3ZYTQhJGbm5bX1BM3M nbf/AfMkrISh19MrBtSmPJ0zICdt8XhFhvrSV4dwGZdOtZZonGXq06/K1g3P/3PcluEt 2kWA7WvNBAU7vGBNcxIDD8x/QK09KgWrpoP3HNiDCYUJj/ZoGZHxebTr5oNNc+csN1gH YRQBLEQvDPgnqHtCPCXB1f+KcR8HCE3uCC55ZYKBhP8a8mhUzftTtr2gP0hY6/reFemU GjHS+GWTlne0I8+VnVw6f1KEDaV+SIeqYLvJcZ+fHobo/jIgmPcHPoc+zK3sj1UE2HPw izMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=IH63M+rQDujYycWKi2//KqpyjJlPXa/KHROFzvxzEXY=; b=PpatiJbJ7w/Qz8HXxVmZ4D8bV+2zrAaEw//wDBZ7W4K6UnJkCL4NHELOI/bYyGu6lJ y98HjI0JcmE+egIzZeSGIuuMP3Em5l41Ynoq7YacrkyMv8jjxhQBWzyXjwWUjOIZhZxJ iMphPGOV6Lff9drl8fojlDooE90d9s6fsUjkaurToebDQR678ue5hWfxgn69VQ5f4VbZ 7V/AOjW7iW4pnWxyPJju173+rvzPFAKwEVpm3Q8rz7PLhe75xQnMW7UE7feTIJ8zochW No8ntAQHjox8IYH32+V/1joRFQ2nalUBDL97COgK2Afm0igM4S/ufosLiHotdX6Mo8Qa xrsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020a05640211ca00b0043de3215579si11372817edw.12.2022.08.16.01.30.04; Tue, 16 Aug 2022 01:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232622AbiHPI1O (ORCPT + 99 others); Tue, 16 Aug 2022 04:27:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232137AbiHPI0K (ORCPT ); Tue, 16 Aug 2022 04:26:10 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4661D13EC87; Mon, 15 Aug 2022 22:56:34 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1oNpZ0-00BVsf-F6; Tue, 16 Aug 2022 15:56:31 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 16 Aug 2022 13:56:30 +0800 Date: Tue, 16 Aug 2022 13:56:30 +0800 From: Herbert Xu To: Robert Elliott Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, ardb@kernel.org, toshi.kani@hpe.com Subject: Re: [PATCH] crypto: tcrypt - remove mode=1000 Message-ID: References: <20220815042915.44547-1-elliott@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220815042915.44547-1-elliott@hpe.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-crypto@vger.kernel.org On Sun, Aug 14, 2022 at 11:29:15PM -0500, Robert Elliott wrote: > The lists of algothms checked for existence by > modprobe tcrypt mode=1000 > generates three bogus errors: > modprobe tcrypt mode=1000 > > console log: > tcrypt: alg rot13 not found > tcrypt: alg cts not found > tcrypt: alg arc4 not found > > rot13 is not an algorithm in the crypto API or tested. > > cts is a wrapper, not a base algorithm. > > arc4 is named ecb(arc4), not arc4. > > Also, the list is missing numerous algorithms that are tested by > other test modes: > blake2b-512 > blake2s-256 > crct10dif > xxhash64 > ghash > cast5 > sm4 > ansi_prng > > Several of the algorithms are only available if > CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE is enabled: > arc4 > khazad > seed > tea, xtea, xeta > > Rather that fix that list, remove test mode=1000 entirely. > It seems to have limited utility, and a web search shows no > discussion of anybody using it. > > Suggested-by: Ard Biesheuvel > Signed-off-by: Robert Elliott > --- > crypto/tcrypt.c | 28 ---------------------------- > 1 file changed, 28 deletions(-) I think it would be better to use alg_test_descs as the source list of get rid of check. But I never use this so unless someone else complains I'm fine with removing it. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt