]> Git Repo - J-linux.git/commitdiff
fscrypt: add additional documentation for SM4 support
authorEric Biggers <[email protected]>
Thu, 1 Dec 2022 19:14:52 +0000 (11:14 -0800)
committerEric Biggers <[email protected]>
Fri, 2 Dec 2022 18:43:00 +0000 (10:43 -0800)
Add a paragraph about SM4, like there is for the other modes.

Signed-off-by: Eric Biggers <[email protected]>
Reviewed-by: Tianjia Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Documentation/filesystems/fscrypt.rst

index c0784ec0555307a8712ce02b93aea7ff89105c20..ef183387da208af15575f5a176e646e66e8d50fd 100644 (file)
@@ -370,6 +370,12 @@ CONFIG_CRYPTO_HCTR2 must be enabled.  Also, fast implementations of XCTR and
 POLYVAL should be enabled, e.g. CRYPTO_POLYVAL_ARM64_CE and
 CRYPTO_AES_ARM64_CE_BLK for ARM64.
 
+SM4 is a Chinese block cipher that is an alternative to AES.  It has
+not seen as much security review as AES, and it only has a 128-bit key
+size.  It may be useful in cases where its use is mandated.
+Otherwise, it should not be used.  For SM4 support to be available, it
+also needs to be enabled in the kernel crypto API.
+
 New encryption modes can be added relatively easily, without changes
 to individual filesystems.  However, authenticated encryption (AE)
 modes are not currently supported because of the difficulty of dealing
This page took 0.049628 seconds and 4 git commands to generate.