]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/sec - fix the CTR mode BD configuration
authorKai Ye <yekai13@huawei.com>
Sat, 22 Jan 2022 08:13:11 +0000 (16:13 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 31 Jan 2022 00:21:45 +0000 (11:21 +1100)
commitc56b1de9dca121c90abb872da969165d3d03874c
tree30cbe42e8625e8b1b0058d5984efc44c89f7596a
parent5945e2493536f2b5e207b33bbbf9217b501f528e
crypto: hisilicon/sec - fix the CTR mode BD configuration

The CTR counter is 32bit rollover default on the BD.
But the NIST standard is 128bit rollover. it cause the
testing failed, so need to fix the BD configuration.

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