]> Git Repo - linux.git/commit
fscrypt: Add SM4 XTS/CTS symmetric algorithm support
authorTianjia Zhang <[email protected]>
Thu, 1 Dec 2022 12:58:19 +0000 (20:58 +0800)
committerEric Biggers <[email protected]>
Thu, 1 Dec 2022 19:23:58 +0000 (11:23 -0800)
commite0cefada1383c5ceb5a35f08369d0d40a6629c18
tree8f62b3504808567dfd86068872319457a42d226f
parentd209ce353a324601f9d3c1eee43b1f0df53021b3
fscrypt: Add SM4 XTS/CTS symmetric algorithm support

Add support for XTS and CTS mode variant of SM4 algorithm. The former is
used to encrypt file contents, while the latter (SM4-CTS-CBC) is used to
encrypt filenames.

SM4 is a symmetric algorithm widely used in China, and is even mandatory
algorithm in some special scenarios. We need to provide these users with
the ability to encrypt files or disks using SM4-XTS.

Signed-off-by: Tianjia Zhang <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Documentation/filesystems/fscrypt.rst
fs/crypto/keysetup.c
fs/crypto/policy.c
include/uapi/linux/fscrypt.h
This page took 0.05448 seconds and 4 git commands to generate.