mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
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>
This commit is contained in:
@@ -97,6 +97,10 @@ struct sec_cipher_ctx {
|
||||
u8 c_mode;
|
||||
u8 c_alg;
|
||||
u8 c_key_len;
|
||||
|
||||
/* add software support */
|
||||
bool fallback;
|
||||
struct crypto_sync_skcipher *fbtfm;
|
||||
};
|
||||
|
||||
/* SEC queue context which defines queue's relatives */
|
||||
|
||||
Reference in New Issue
Block a user