Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp491717rwb; Thu, 1 Dec 2022 05:00:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf68xPfOxCoLKHFuafRivIxb6KJ7d4rKKyCgWjRoC4pY43u91o6OZgcp0iwhe7/QxawTwpx7 X-Received: by 2002:a63:2d44:0:b0:46f:7e1c:2bb7 with SMTP id t65-20020a632d44000000b0046f7e1c2bb7mr42153559pgt.368.1669899623714; Thu, 01 Dec 2022 05:00:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669899623; cv=none; d=google.com; s=arc-20160816; b=itFVw5BBrtpRyZoVdf9WJqLNGO7Xf+DgqVTSVqz8cga0KniP/JR4l0R3jmMWxVotZu /5cc859R73htmojEosHaL4tIqh+HW+OoFaRMZTHT6m4jPnl2/733s92w4SrFErU8xA5P Zodc9Iz+dw0MrocCpm4F4bDa2KTqow6tLylgxTFbVDKhGnsJ7UDoFEPwQE7Kwlp4lBAk uydd631ij7/3MXz5HykoOUqVUbMX2bt5F0fMzQUnzbfYNUOPsjVGpXmG49A84rbD9YE5 /iJgVdfDzUljMKb/aPe+9FWgjqU7p/yEGzbGOBx6tCGVm6zdFreI60AjtdW5ZCBs8Yik cZZg== 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:to:content-language:subject:user-agent:mime-version:date :message-id; bh=1dkQiRcPQg3TjzkdfHaBR6tY8h566LR1KJDqa5t0GoE=; b=ySg1X5eXKTaPuf2aI69KosS0MStHdXMDZouRhirSr/wnGGMt6YXe27GnnJiqr05O77 rosNvAJHpQHwNIvOXhlG0licPfdsOgm2VKV/ZKDkxwmO5cGgYG/1BEQphiIPSGbwzUBk knZPkJxhTP/Va+FN/puQtQedv9cYJmrISapQFAFPxD1qBGKk0ZKiLOxE5caZ0l4g4d+A oIJemKSYNlwGNo/ceLLr+zhSWDvQKSRAS5299DCi6aiqwx3aoW2AKEYtymwUE2ifrOzS NemhoueECpnAEFd8lTVqRwOPV5loIvdRTpUveRxu0nNRh59B0cXHWBbVxUDrvxA+BdSa ngwA== 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 u7-20020a170902714700b001732b4e99c4si4057082plm.377.2022.12.01.05.00.11; Thu, 01 Dec 2022 05:00:23 -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 S230417AbiLAMqL (ORCPT + 82 others); Thu, 1 Dec 2022 07:46:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbiLAMqJ (ORCPT ); Thu, 1 Dec 2022 07:46:09 -0500 Received: from out30-7.freemail.mail.aliyun.com (out30-7.freemail.mail.aliyun.com [115.124.30.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA30684DFA; Thu, 1 Dec 2022 04:46:03 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VW8qGyf_1669898759; Received: from 30.32.116.214(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0VW8qGyf_1669898759) by smtp.aliyun-inc.com; Thu, 01 Dec 2022 20:46:01 +0800 Message-ID: Date: Thu, 1 Dec 2022 20:45:58 +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 v3 2/2] fscrypt: Add SM4 XTS/CTS symmetric algorithm support Content-Language: en-US To: Bagas Sanjaya , Eric Biggers , "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 References: <20221125121630.87793-1-tianjia.zhang@linux.alibaba.com> <20221125121630.87793-3-tianjia.zhang@linux.alibaba.com> <1a5e57be-ccff-f281-6e06-be5e59db1d05@gmail.com> From: Tianjia Zhang In-Reply-To: <1a5e57be-ccff-f281-6e06-be5e59db1d05@gmail.com> 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,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/28/22 9:33 PM, Bagas Sanjaya wrote: > On 11/25/22 19:16, Tianjia Zhang wrote: >> SM4 is a symmetric algorithm widely used in China, and is even mandatory >> in many scenarios. We need to provide these users with the ability to >> encrypt files or disks using SM4-XTS, and many other algorithms that use >> SM2/3/4 algorithms or their combined algorithm scenarios, these features >> are demanded by many users, this patch enables to use SM4-XTS mode to >> encrypt file content, and use SM4-CBC-CTS to encrypt filename. >> > > Similar reply as [1]. That is, better say: > > ``` > Add support for XTS and CTS mode variant of SM4 algorithm, in similar > fashion to SM2 and SM3. The former is used to encrypt file contents, while > the latter (SM4-CBC-CTS) is used to encrypt filenames. > ``` > > Thanks. > > [1]: https://lore.kernel.org/linux-doc/42624542-6ccb-26a5-db98-d7944972246e@gmail.com/ > Thanks for your reply, it is very valuable for me, I will update it in the next patch. Cheers, Tianjia