Message ID | 20221122070632.21910-1-tianjia.zhang@linux.alibaba.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2049101wrr; Mon, 21 Nov 2022 23:11:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf42YT2mH/V6jyRoLo67GiXyKs6eocxqEDZRmPYAE2ikGbJ2cggpB6kVALf834gDHmdLchPx X-Received: by 2002:a17:90a:aa93:b0:218:94ff:ce1f with SMTP id l19-20020a17090aaa9300b0021894ffce1fmr15937466pjq.217.1669101077848; Mon, 21 Nov 2022 23:11:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669101077; cv=none; d=google.com; s=arc-20160816; b=YQtETfpCl+995rf+6aKAfztw0vosx2c8h6s44MA9uZNAu13VldPLNVnT6KB+E9e9r2 3GRxAw0jdQhFFfh7kU/IeIoYdH9kiNlwLS5yoEgTu3Wh3uV/YUFLZNsIVYItjl8dhhQt Rs2NEbKzZFABK+FWs6whYrVTRRXizHK6yaBavs9wLBQWB5gm3WukXFMsw9I//N8rjzzn AdXvqud52etBYimcB+7CqitUWmRuh/MSRRMKutUirtbufQS4h66Phx/3jx9MndiS3EBg KeewGgaK8hFJrL6W6UuHA5OyvrmZjNes6lca5rgrpfObDWfE2bGXMNu884ZOP+K/wyex OQIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+vdgcaSEQULAqEfMD1NracZKNFIOB3NA2vNHXHh4c8w=; b=fWOTez9bQcDjn5khnVzmAo6SQUrtY0ssgPBhzyfJy0/3Mf/MMyGe9TvQY77tSG4Rzm V1Pv4HI1CvnQThA7tAf+C3M2ZtT8okYkuA8dn0ohRSEc/JiKuF5ObSZGFf2B7F8BLA1t 9W0ItyjyWoHYviwj8NtGPFizUtyvl67jQZCc1ffm4DHV5Jy4JuNMIR6Etj039M5qdTyJ JLtJ/rF2s3AYF+yaZO+YNoGGUiN2bVC7yDTSJ+hHImjx7yoS7ASPvYsbPwD1CF68tRuV 8lJzLK6qG10/Xv6QRINdNtU1qat2GHcRCj+5pyjPlBAo0qmt1M/d56H1kEEJDs5Ha3dI zTeA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a056a001ad400b00571ea18493dsi14802484pfv.175.2022.11.21.23.11.03; Mon, 21 Nov 2022 23:11:17 -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 S231368AbiKVHGn (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Tue, 22 Nov 2022 02:06:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbiKVHGk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 22 Nov 2022 02:06:40 -0500 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D5862A97E; Mon, 21 Nov 2022 23:06:38 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R351e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VVR3ytI_1669100793; Received: from localhost(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0VVR3ytI_1669100793) by smtp.aliyun-inc.com; Tue, 22 Nov 2022 15:06:34 +0800 From: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> To: "Theodore Y. Ts o" <tytso@mit.edu>, Jaegeuk Kim <jaegeuk@kernel.org>, Eric Biggers <ebiggers@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Jens Axboe <axboe@kernel.dk>, Ard Biesheuvel <ardb@kernel.org>, linux-fscrypt@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Cc: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Subject: [PATCH v2 0/2] Add SM4 XTS symmetric algorithm for blk-crypto and fscrypt Date: Tue, 22 Nov 2022 15:06:30 +0800 Message-Id: <20221122070632.21910-1-tianjia.zhang@linux.alibaba.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750179331606847787?= X-GMAIL-MSGID: =?utf-8?q?1750179331606847787?= |
Series |
Add SM4 XTS symmetric algorithm for blk-crypto and fscrypt
|
|
Message
Tianjia Zhang
Nov. 22, 2022, 7:06 a.m. UTC
SM4 is widely used in China's data encryption software and hardware. This serial of patches enables the SM4-XTS algorithm in blk-crypto and enables the SM4-XTS/CTS algorithm in fscrypt to encrypt file content and filename. v2 change: - As Eric said, the new FSCRYPT_MODE is defined for the unused numbers 7 and 8 Tianjia Zhang (2): blk-crypto: Add support for SM4-XTS blk crypto mode fscrypt: Add SM4 XTS/CTS symmetric algorithm support Documentation/filesystems/fscrypt.rst | 1 + block/blk-crypto.c | 6 ++++++ fs/crypto/keysetup.c | 15 +++++++++++++++ fs/crypto/policy.c | 4 ++++ include/linux/blk-crypto.h | 1 + include/uapi/linux/fscrypt.h | 2 ++ 6 files changed, 29 insertions(+)