crypto: hisilicon/sec - add fallback tfm supporting for aeads
authorKai Ye <yekai13@huawei.com>
Fri, 4 Jun 2021 01:31:27 +0000 (09:31 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Jun 2021 07:03:30 +0000 (15:03 +0800)
commit6c46a3297beae4ae2d22b26da5e091f058381c7c
treee34dd9a1929d37e6a66004b81c6184d21a1080b5
parentc16a70c1f253e70f5d49b8e1054769bc8dbc3848
crypto: hisilicon/sec - add fallback tfm supporting for aeads

Add fallback tfm supporting for hisi_sec driver. Due to the Kunpeng920's
CCM/GCM algorithm not supports 0 byte src length. So the driver needs to
setting the soft fallback aead tfm.

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