]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb49478c6ba7d79d81512d86e90b0df7ad67d0ac5
tree841a09f31048f17c4054bc6cc24471324aea9cb6
parent8c24e8cc47d7e516797d13a13b50d4f47974e00c
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