From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DF1CC433F5 for ; Tue, 1 Mar 2022 10:34:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234286AbiCAKfY (ORCPT ); Tue, 1 Mar 2022 05:35:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233964AbiCAKfU (ORCPT ); Tue, 1 Mar 2022 05:35:20 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428D056211; Tue, 1 Mar 2022 02:34:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0697CB81883; Tue, 1 Mar 2022 10:34:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E33D1C340EE; Tue, 1 Mar 2022 10:34:34 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="BZ0J/bhM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1646130873; 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: in-reply-to:in-reply-to:references:references; bh=KrL+3ypY7MSHLlaLSPrO0H3DAraTyrbigcbqUcI+1Hc=; b=BZ0J/bhMI4H6KO6HONrwaT5unvgVZ8nTcXn7FJDYZ7zGV9Bz0cghw/8/e6EIGp02b/Jfpc uU8TU1Q48Gs8BlhFGHBW9fv16nQED0MQOqVuMHAgAOTWzzwCdpY86nYs83Po6+vX/LbMOx +Fwfw9mt6Iu8UwCDd5qNLJtMwcAS3UQ= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 61b4ee7d (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 1 Mar 2022 10:34:33 +0000 (UTC) Date: Tue, 1 Mar 2022 11:34:28 +0100 From: "Jason A. Donenfeld" To: Tianjia Zhang Cc: Herbert Xu , "David S. Miller" , Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Gilad Ben-Yossef , Ard Biesheuvel , "Markku-Juhani O . Saarinen" , Jussi Kivilinna , x86@kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] crypto: sm4 - create SM4 library based on sm4 generic code Message-ID: References: <20210610134459.28541-1-tianjia.zhang@linux.alibaba.com> <20210610134459.28541-2-tianjia.zhang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210610134459.28541-2-tianjia.zhang@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > lib/crypto/Kconfig | 3 + > lib/crypto/Makefile | 3 + > lib/crypto/sm4.c | 184 +++++++++++++++++++++++++++++++++++++++++++ If this is only used by the crypto API, it does not belong in lib/crypto. I understand you want fallback generic code for the SIMD implementation, but we've generally done that in crypto/ when the use case is only the crypto API. Can you move this to the right place?