1. 09 9月, 2019 14 次提交
  2. 05 9月, 2019 25 次提交
  3. 30 8月, 2019 1 次提交
    • M
      crypto: hisilicon - select CRYPTO_LIB_DES while compiling SEC driver · 1bbbbcfd
      Mao Wenan 提交于
      When CRYPTO_DEV_HISI_SEC=y, below compilation error is found after
      'commit 894b68d8 ("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
      '04007b0e ("crypto: des - split off DES library from generic DES cipher driver")'.
      Fix this by selecting CRYPTO_LIB_DES in CRYPTO_DEV_HISI_SEC.
      
      Fixes: 04007b0e ("crypto: des - split off DES library from generic DES cipher driver")
      Fixes: 894b68d8 ("crypto: hisilicon/des - switch to new verification routines")
      Signed-off-by: NMao Wenan <maowenan@huawei.com>
      Acked-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      1bbbbcfd