Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6342973rwb; Tue, 22 Nov 2022 12:00:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5IrcmDA6j9qLztsma5Iv40J8U6CUysMeJqYS2+oqA1Ry3HcqWUDllUwLRARlMMRHE1AZeW X-Received: by 2002:a17:90b:2392:b0:218:8576:82eb with SMTP id mr18-20020a17090b239200b00218857682ebmr22550721pjb.101.1669147244635; Tue, 22 Nov 2022 12:00:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669147244; cv=none; d=google.com; s=arc-20160816; b=EL0yiXyeaoeE6Oqi+DWMs1Z2laeXZ3NybPEbS62+gQGIl4Isp85qv7sGlGU8jU8cBX yRD+rJQ9jr89hUPXmYuB3uNS9hB+OSzlNFbQ5IJIy7YunLEoY72FRqsSuYCfx6x2GqDN t0RXk9vtu2+SPu9u1gbI4qlBS+OWJjqQRIF6AHkNhQSI40iLYuLvdaTP9Z/R8bmq0Fuy 5X0wtLDASboDYJ3YWkvlwphrnjIEMNTGsV3ITTtIhpkjUmQEs02Qcp6pgyFBJ9TFVZJt dBYJTewDoole7ciz7uDo2rSCyT5UHb8ftgtjYFElG53y1eeukpdny/FbqMHPNDCo8Ku9 O6eQ== 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:dkim-signature; bh=n/ZeBNCQwN8WuXSobbv+o34avlFuCBCN0bmtm8fs7f0=; b=Pt3nKmjMobpKwApf69v08pJVyxqt3ox27Aq2gffqRA4B8Wg4Mu+K0FeMdBgOF+uqgg jE9zCLLLuebMlDdLwruX0XNQasTs/9g1BbR/AFcVq5GML5+SPMrypZWjJuCi8r+GwTmk +pxS2WeNZBxo8KdvDRBxV3PKuOBaASgOCCWyPrgM5dUqxQLnEN8WJ+/O/foO9Az2NJiR a8zbeHKJR7SjEZIq40nbMNE3UBVZtWKmYhkFBTuhHoXXTI9c5SlkAbo57DGRh48lyYtN irLYopFYGrSGdB1w/yeprNC8NiEP0EvsnUhOk7cRrLIdEpe8VznzTdjLA6WkFYYdk6KF l/Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GKVDKeWR; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i129-20020a625487000000b005731d316830si11954016pfb.23.2022.11.22.12.00.32; Tue, 22 Nov 2022 12:00:44 -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=@kernel.org header.s=k20201202 header.b=GKVDKeWR; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232544AbiKVTW7 (ORCPT + 90 others); Tue, 22 Nov 2022 14:22:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234716AbiKVTW6 (ORCPT ); Tue, 22 Nov 2022 14:22:58 -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 A5525CE12; Tue, 22 Nov 2022 11:22:57 -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 419B7B81D50; Tue, 22 Nov 2022 19:22:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9177BC433C1; Tue, 22 Nov 2022 19:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669144974; bh=Nd2SSpX2rnlORZIuluFSyUmIIouCQL/zDa4vN299e4E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GKVDKeWRBnacfdNcZLokrwElYe4jvGQbxsQh6kyyDkSFllijnHydQhaBmNaHeQJ7Y bTMQU8GPNnMcWnjL9KwMShGAnxkAZs9zAyGKWEGnJqdTMB9PM2S/U03A+S9tIF95yc EBcrcd0NzWG3KOwQNIH97dxyqqIb/F0wWvx2xblEWrKRvXKOD+/JO+HlfQCZhU9UnE L/oHVpRp++M6DClMKF+/tPdg3IwjBB8KaPfju8bePj8YYc0hcQ3gqIv17g516fkmb7 hvLqLXpc6kvu3V09n+TIzbqIuala1T/vjmSnVR5fih7B7Rd20xe7St7pUSVdwwmPCZ fi7K81DyYHCTg== Date: Tue, 22 Nov 2022 11:22:52 -0800 From: Eric Biggers To: Tianjia Zhang Cc: "Theodore Y. Ts o" , Jaegeuk Kim , Jonathan Corbet , Jens Axboe , Ard Biesheuvel , linux-fscrypt@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH v2 2/2] fscrypt: Add SM4 XTS/CTS symmetric algorithm support Message-ID: References: <20221122070632.21910-1-tianjia.zhang@linux.alibaba.com> <20221122070632.21910-3-tianjia.zhang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221122070632.21910-3-tianjia.zhang@linux.alibaba.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Tue, Nov 22, 2022 at 03:06:32PM +0800, Tianjia Zhang wrote: > SM4 is a symmetric algorithm widely used in China, this patch enables > to use SM4-XTS mode to encrypt file content, and use SM4-CBC-CTS to > encrypt filename. > > Signed-off-by: Tianjia Zhang There is still no explanation here about why you believe this algorithm is useful to support in fscrypt. - Eric