Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14366127rwb; Sun, 27 Nov 2022 23:15:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf5eZOOvALUtn7QLNUlIz56g8QzP5PL92hvwT48hRf9/m5pbsR6VEBtAWxlEDjPrIa/zag6Z X-Received: by 2002:a17:90a:7885:b0:217:e32e:e931 with SMTP id x5-20020a17090a788500b00217e32ee931mr58552588pjk.146.1669619716394; Sun, 27 Nov 2022 23:15:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669619716; cv=none; d=google.com; s=arc-20160816; b=aKOZUqKc+oywRMvtm6ZiAmRsrnc44q6wyDh/Un8ERHXRQWMjl+TlEl7tJ9d5HKghHa tNk+jnS49iWoYyZTIY1SCfDB67SRUrj7ZkaNzFZAU7BmfD0LperCJ8NW+PdOMco6NNsI gU1xBcYCHeXBvRvB1C1btOII3s5S5ABtOYEYcmejYoI6IBfqUyAwWPohwHATQBzSH/g+ X+lZwq7VxshrwWFj2o5Ndx6BGRaeDUyDfqaVFxSXTrWhBztVS0xPwEvQiwrutrrMTw+d Lhp1bghmyBmFThWAEkYQcVf1jTqm8YK3kyfXx3I7Xf3IBRxgLqxbCRnUTzcyppwP0OEF peFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=dHGPagIv756JFy5d/1DDVTt/FTbbv6gAjGUbalRHYiM=; b=UPYgY5v/0aoazf2n+rYYSXIwWOawMD0s4NBzUxQ7N9fkBCPFT7alj7iy8DsgVJa2dj cYHruDfirTM5q+/CfLz+eRoDDNttbpanvLURgPHYKc81yV1kdlR+FPPznZ7ka9WM8LRK gKukjPnSliC0mNVzxNJ4Vf57QAStvCb1sg4UP+yyEwoURCGz17kYrnLu0mqzV9pE+tTE Sh2Y65Af+qslexB/Q5nZstdfUIVq8nis62p4J7XApGGdAosbvhEUgrR3G7+a4KAx0uU7 B8ZR7Xro+vOClfqF4qRpn6p4nZHZ+mAO0wa1qfga2w11SmyhIj7DUzm93wIVWBfRfad7 gwTQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a63b40d000000b0046e96b9ecfdsi10538997pgf.801.2022.11.27.23.15.04; Sun, 27 Nov 2022 23:15:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229593AbiK1HIP (ORCPT + 85 others); Mon, 28 Nov 2022 02:08:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbiK1HIJ (ORCPT ); Mon, 28 Nov 2022 02:08:09 -0500 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 857EEBF6D; Sun, 27 Nov 2022 23:08:06 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VVqYIHI_1669619281; Received: from 30.27.90.133(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0VVqYIHI_1669619281) by smtp.aliyun-inc.com; Mon, 28 Nov 2022 15:08:03 +0800 Message-ID: Date: Mon, 28 Nov 2022 15:08:01 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH] selftests/tls: Fix tls selftests dependency to correct algorithm Content-Language: en-US To: Bagas Sanjaya Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , "Jason A. Donenfeld" , Herbert Xu , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221125121905.88292-1-tianjia.zhang@linux.alibaba.com> From: Tianjia Zhang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.2 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL 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 Hi Bagas, On 11/25/22 9:18 PM, Bagas Sanjaya wrote: > On Fri, Nov 25, 2022 at 08:19:05PM +0800, Tianjia Zhang wrote: >> Commit d2825fa9365d ("crypto: sm3,sm4 - move into crypto directory") moves >> the SM3 and SM4 stand-alone library and the algorithm implementation for >> the Crypto API into the same directory, and the corresponding relationship >> of Kconfig is modified, CONFIG_CRYPTO_SM3/4 corresponds to the stand-alone >> library of SM3/4, and CONFIG_CRYPTO_SM3/4_GENERIC corresponds to the >> algorithm implementation for the Crypto API. Therefore, it is necessary >> for this module to depend on the correct algorithm. >> > > I feel a rather confused. What about below? > > ``` > Commit moves SM3 and SM4 algorithm implementations from > stand-alone library to crypto API. The corresponding configuration > options for the API version (generic) are CONFIG_CRYPTO_SM3_GENERIC and > CONFIG_CRYPTO_SM4_GENERIC, respectively. > > Replace option selected in selftests configuration from the library version > to the API version. > ``` > Thanks, this is great, I will pick it up. >> Fixes: d2825fa9365d ("crypto: sm3,sm4 - move into crypto directory") >> Cc: Jason A. Donenfeld >> Cc: stable@vger.kernel.org # v5.19+ >> Signed-off-by: Tianjia Zhang >> --- >> tools/testing/selftests/net/config | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config >> index ead7963b9bf0..bd89198cd817 100644 >> --- a/tools/testing/selftests/net/config >> +++ b/tools/testing/selftests/net/config >> @@ -43,5 +43,5 @@ CONFIG_NET_ACT_TUNNEL_KEY=m >> CONFIG_NET_ACT_MIRRED=m >> CONFIG_BAREUDP=m >> CONFIG_IPV6_IOAM6_LWTUNNEL=y >> -CONFIG_CRYPTO_SM4=y >> +CONFIG_CRYPTO_SM4_GENERIC=y >> CONFIG_AMT=m > > You mean the correct algo option is CONFIG_CRYPTO_SM4_GENERIC, right? > Yes, CONFIG_CRYPTO_SM4_GENERIC is the correct algo option. Best regards, Tianjia