Linux FSCRYPT development
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Add SM4 XTS symmetric algorithm for blk-crypto and fscrypt
@ 2022-12-01 12:58 Tianjia Zhang
  2022-12-01 12:58 ` [PATCH v4 1/2] blk-crypto: Add support for SM4-XTS blk crypto mode Tianjia Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tianjia Zhang @ 2022-12-01 12:58 UTC (permalink / raw)
  To: Eric Biggers, Theodore Y. Ts o, Jaegeuk Kim, Jonathan Corbet,
	Jens Axboe, Ard Biesheuvel, Bagas Sanjaya, linux-fscrypt,
	linux-doc, linux-kernel, linux-block
  Cc: Tianjia Zhang

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.

v4 changes:
  - only allow the SM4 XTS/CTS algorithm in policy v2 for fscrypt
  - update git commit message

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                    |  5 +++++
 include/linux/blk-crypto.h            |  1 +
 include/uapi/linux/fscrypt.h          |  2 ++
 6 files changed, 30 insertions(+)

-- 
2.24.3 (Apple Git-128)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-12-02 12:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-01 12:58 [PATCH v4 0/2] Add SM4 XTS symmetric algorithm for blk-crypto and fscrypt Tianjia Zhang
2022-12-01 12:58 ` [PATCH v4 1/2] blk-crypto: Add support for SM4-XTS blk crypto mode Tianjia Zhang
2022-12-01 12:58 ` [PATCH v4 2/2] fscrypt: Add SM4 XTS/CTS symmetric algorithm support Tianjia Zhang
2022-12-01 19:29 ` [PATCH v4 0/2] Add SM4 XTS symmetric algorithm for blk-crypto and fscrypt Eric Biggers
2022-12-02 12:01   ` Tianjia Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox