OpenCloudOS-Kernel/drivers/crypto/hisilicon
Mao Wenan 1bbbbcfdc0 crypto: hisilicon - select CRYPTO_LIB_DES while compiling SEC driver
When CRYPTO_DEV_HISI_SEC=y, below compilation error is found after
'commit 894b68d8be ("crypto: hisilicon/des - switch to new verification routines")':

drivers/crypto/hisilicon/sec/sec_algs.o: In function `sec_alg_skcipher_setkey_des_cbc':
sec_algs.c:(.text+0x11f0): undefined reference to `des_expand_key'
drivers/crypto/hisilicon/sec/sec_algs.o: In function `sec_alg_skcipher_setkey_des_ecb':
sec_algs.c:(.text+0x1390): undefined reference to `des_expand_key'
make: *** [vmlinux] Error 1

This because DES library has been moved to lib/crypto in this commit
'04007b0e6cbb ("crypto: des - split off DES library from generic DES cipher driver")'.
Fix this by selecting CRYPTO_LIB_DES in CRYPTO_DEV_HISI_SEC.

Fixes: 04007b0e6c ("crypto: des - split off DES library from generic DES cipher driver")
Fixes: 894b68d8be ("crypto: hisilicon/des - switch to new verification routines")

Signed-off-by: Mao Wenan <maowenan@huawei.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-08-30 18:05:31 +10:00
..
sec crypto: hisilicon/des - switch to new verification routines 2019-08-22 14:39:40 +10:00
zip crypto: hisilicon - fix error handle in hisi_zip_create_req_q 2019-08-15 21:52:13 +10:00
Kconfig crypto: hisilicon - select CRYPTO_LIB_DES while compiling SEC driver 2019-08-30 18:05:31 +10:00
Makefile crypto: hisilicon - add HiSilicon ZIP accelerator support 2019-08-09 15:11:54 +10:00
qm.c crypto: hisilicon - Fix warning on printing %p with dma_addr_t 2019-08-22 14:57:34 +10:00
qm.h crypto: hisilicon - add debugfs for ZIP and QM 2019-08-09 15:11:57 +10:00
sgl.c crypto: hisilicon - init curr_sgl_dma to fix compile warning 2019-08-15 21:52:12 +10:00
sgl.h crypto: hisilicon - add hardware SGL support 2019-08-09 15:11:53 +10:00