crypto: hisilicon/sec - add fallback tfm supporting for XTS mode
authorKai Ye <yekai13@huawei.com>
Fri, 28 May 2021 11:42:05 +0000 (19:42 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 3 Jun 2021 12:24:06 +0000 (20:24 +0800)
commit5652d55a76f6f59f0c1cfc7b90050742738cd227
treed74aefc6ca153c2b87e586c40298a3754b802bdd
parent7b44c0eecd6ade576bfb7a104dcdae5580237420
crypto: hisilicon/sec - add fallback tfm supporting for XTS mode

Add fallback tfm supporting for hisi_sec driver. Due to the hardware
not supports 192bit key length when using XTS mode. So the driver needs
to setting the soft fallback skcipher tfm for user.

Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec.h
drivers/crypto/hisilicon/sec2/sec_crypto.c