Whamcloud - gitweb
LU-14673 sec: annotate algorithms taking optional key 53/43653/7
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 11 May 2021 08:59:03 +0000 (10:59 +0200)
committerOleg Drokin <green@whamcloud.com>
Sun, 27 Jun 2021 10:57:51 +0000 (10:57 +0000)
commit0aefae53fb03eaca7229d9d4b3e48c4a8c33de1a
tree0a75affddcd94562958a53680dce5a8cb30af1a4
parent86bf7454d441bc1322eff68106b1766e2f255e72
LU-14673 sec: annotate algorithms taking optional key

Crypto algorithms implementing a ->setkey() method but that can also
be used without a key must set the CRYPTO_ALG_OPTIONAL_KEY flag if
defined in the kernel.
In Lustre, adler32 and crc32 implementations define a ->setkey()
method, but their "key" is not actually a cryptographic key.

Lustre-change: https://review.whamcloud.com/43656
Lustre-commit: b161e7b777e63bb4328aeab9e50560f919fedc31

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I362211d1b1aa3763fe1481cebb3629b255f29e41
Reviewed-on: https://review.whamcloud.com/43653
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Aurelien Degremont <degremoa@amazon.com>
libcfs/libcfs/linux/linux-crypto-adler.c
libcfs/libcfs/linux/linux-crypto-crc32.c
libcfs/libcfs/linux/linux-crypto-crc32c-pclmul.c
libcfs/libcfs/linux/linux-crypto-crc32pclmul.c