Whamcloud - gitweb
LU-14151 gss: use skcipher when sync_skcipher not available 68/40768/9
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 26 Nov 2020 16:22:49 +0000 (11:22 -0500)
committerOleg Drokin <green@whamcloud.com>
Sun, 13 Dec 2020 08:23:42 +0000 (08:23 +0000)
commitb6eb0c84a3e8ada2dff1d32a3b8bcf80e6ebd246
tree9a1b2e31d3e8f51e09de699cc7a5639bde1dc515
parentdbb6b493ad9f989197401bdfec72b93bbb7a8faf
LU-14151 gss: use skcipher when sync_skcipher not available

Linux 4.2 introduced support for skcipher in commit
7a7ffe65c8c5 crypto: skcipher - Add top-level skcipher interface

Based on the existence of crypto_alloc_skcipher, use the skcipher API
instead of the blkcipher API, in case the sync_skcipher API is not
available.

Test-Parameters: clientdistro=el8.2 env=SHARED_KEY=true,SK_FLAVOR=skpi mdscount=2 mdtcount=4 osscount=1 ostcount=8 clientcount=2 testlist=sanity
Test-Parameters: clientdistro=el7.8 env=SHARED_KEY=true,SK_FLAVOR=skpi mdscount=2 mdtcount=4 osscount=1 ostcount=8 clientcount=2 testlist=sanity
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I4e62cd5c8219a215c5528f81d525c054215073e3
Reviewed-on: https://review.whamcloud.com/40768
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/ptlrpc/gss/gss_crypto.h