crypto: hisilicon/sec - Fixes AES algorithm mode parameter problem
authorLongfang Liu <liulongfang@huawei.com>
Sat, 27 Mar 2021 10:28:30 +0000 (18:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Apr 2021 07:28:14 +0000 (18:28 +1100)
commit059c5342812c448f21bed1881a75134320e9c8a2
tree841a09f31048f17c4054bc6cc24471324aea9cb6
parent0ae869926fab00b95709518d72cca2d50a29eccd
crypto: hisilicon/sec - Fixes AES algorithm mode parameter problem

The input data of the ECB (AES) algorithm needs to be aligned
with 16 bytes, and the input data of the XTS (AES) algorithm is
at least 16 bytes. Otherwise the SEC hardware will go wrong.

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