Message ID | 20221125121630.87793-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 q4csp3970948wrr; Fri, 25 Nov 2022 04:17:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf6HAhj1sYaDcZs7rgZ9L2xyrSTQKwa6wEAj7TGcMdoEbRIQaAMOo+H1DmwxqKrwOsoCByJA X-Received: by 2002:a65:4681:0:b0:464:2135:5f88 with SMTP id h1-20020a654681000000b0046421355f88mr15154497pgr.360.1669378656933; Fri, 25 Nov 2022 04:17:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669378656; cv=none; d=google.com; s=arc-20160816; b=iuUqXHZn9Bcs3nYr3UVr6oSQGsAa1IG/9vntSKtZemv2Ti3kLV4+RjUIMXqEGu/SMr RVesrU0ekDQFlr23ViFZe7kUTe/qU0jpyDwO+k9ZvJGoxzbSrGN94mcn6cNx9HGranTM ic5Dp+NT3pVL3IbISm76Y8MG0CXV+nj58hDkWV/SLhyVFNQkuk7+uAuU+DY5ZjtbL/xS tXQmdObzO+AlJjS0ovUNpKIW1AbyZYWLd+tUhQ71tBZmHRpK5phwAT1ySMmIjPhSKtp1 xAmnQLBwGB1QBavniyUWFAU8uetiaI2COYJJ/hyhGgOhNrKap7G0Tsoh/6fqGj0OhMOQ WP3Q== 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=sqGJAp8TlRjtqN8v2bMhfJR89Tr95Q6sC2Kc/lrD6OM=; b=Q1xfYCJLF5b0w7pIQXo3zs4bG7dhhpMPhs6XUMKLbGZ49utx2ETNlEdr9PwmRQEO7O 2ny8AFsAgZtN2xX+ZlM6ruk2zRjJY90O+hb9Gk636ublVsidq4Y6viBfcjzqRLJGzxT0 y5HnBVrmO4FB9Qoqa/pY17r5KBMUx7ccbDEcZGr+5KdCFmQwJwKnCmV8BRoc6Vap10ZF lWWbOl5j2slx3SY/PRhdhfKtRdn+dyrGzKqvTjcCGWz/JH/LWuJiKj44RngmCHPbpASv 6u1n07zQPBt9ELcYUJepI5E39vIaMuN9bWDLSY4ewv4LEO9RTQWE8O2Yx3hU8jKQmQAm HZKQ== 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 w37-20020a634765000000b0047767ddcdcesi3526800pgk.566.2022.11.25.04.17.15; Fri, 25 Nov 2022 04:17:36 -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 S229538AbiKYMRF (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Fri, 25 Nov 2022 07:17:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbiKYMRD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 25 Nov 2022 07:17:03 -0500 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 341414A079; Fri, 25 Nov 2022 04:16:57 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;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_---0VVfOHkY_1669378595; Received: from localhost(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0VVfOHkY_1669378595) by smtp.aliyun-inc.com; Fri, 25 Nov 2022 20:16:36 +0800 From: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> To: Eric Biggers <ebiggers@kernel.org>, "Theodore Y. Ts o" <tytso@mit.edu>, Jaegeuk Kim <jaegeuk@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 v3 0/2] Add SM4 XTS symmetric algorithm for blk-crypto and fscrypt Date: Fri, 25 Nov 2022 20:16:28 +0800 Message-Id: <20221125121630.87793-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,RCVD_IN_MSPIKE_H2, 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?1750470394615612777?= X-GMAIL-MSGID: =?utf-8?q?1750470394615612777?= |
Series |
Add SM4 XTS symmetric algorithm for blk-crypto and fscrypt
|
|
Message
Tianjia Zhang
Nov. 25, 2022, 12:16 p.m. UTC
SM4 is widely used in China's data encryption software and hardware. these algoritms are mandatory in many scenarios. 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. v3 change: - update git commit message 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(+)