Whamcloud - gitweb
LU-12275 sec: introduce null algo for filename encryption 81/38881/8
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 9 Jun 2020 15:11:42 +0000 (15:11 +0000)
committerOleg Drokin <green@whamcloud.com>
Fri, 17 Jul 2020 19:30:23 +0000 (19:30 +0000)
commitc60b7d9f571748fb055d29cd019709f9e965a84d
treed0b7d164e77e17400bcf8cbcc990b35e669e79d6
parent24efa706939752487d8f8c9742400182d513157f
LU-12275 sec: introduce null algo for filename encryption

Introduce a "null" algorithm for client side filename encryption,
which is basically a no-op.
This is needed because first implementation step only supports
content encryption, and not names. So give the ability to support
encryption policies that have a 'filenames_encryption_mode' property
internally set to LLCRYPT_MODE_NULL.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I3470f89f227b3a03e56766fe1ba5e36ae92ec27b
Reviewed-on: https://review.whamcloud.com/38881
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/uapi/linux/llcrypt.h
libcfs/libcfs/crypto/crypto.c
libcfs/libcfs/crypto/fname.c
libcfs/libcfs/crypto/keysetup.c
libcfs/libcfs/crypto/llcrypt_private.h
libcfs/libcfs/crypto/policy.c