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 D64DDC4708E for ; Thu, 1 Dec 2022 12:46:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230506AbiLAMqL (ORCPT ); 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 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