Whamcloud - gitweb
LU-14880 libcfs: Use crypto/sha2.h if available
authorShaun Tancheff <shaun.tancheff@hpe.com>
Thu, 22 Jul 2021 07:45:37 +0000 (02:45 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 20 Sep 2021 23:01:13 +0000 (23:01 +0000)
commitce3b689d347dd23a9817d1ea6511e547afea570b
tree6c103b2f2a759a33bab226680193810525f05492
parentbd3eb8409945fad88654f92ee2077936d610753a
LU-14880 libcfs: Use crypto/sha2.h if available

As of Linux commit a24d22b225ce158651378869a6b88105c4bdb887
   crypto: sha - split sha.h into sha1.h and sha2.h

sha.h is removed and sha2.h or sha3.h is preferred.

Lustre-change: https://review.whamcloud.com/44373
Lustre-commit: e9cffb256d10a3bb28c957f0bf06c61793a9610b

Test-Parameters: trivial
Fixes: a813e81870 ("LU-12275 sec: add llcrypt as file encryption library")
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Iead5e1cb23e79a400da3cbfeb4c35c834e821d62
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-on: https://review.whamcloud.com/44996
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/libcfs/crypto/hkdf.c
libcfs/libcfs/crypto/keysetup.c