crypto: talitos - Fix ctr(aes) on SEC1
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 20 Jan 2021 18:57:25 +0000 (18:57 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Jan 2021 04:57:59 +0000 (15:57 +1100)
commit43a942d27eaaf33bca560121cbe42f3637e92880
treeb6bfc219b13f80732c2c386d45a3720d5b4047b7
parent416b846757bcea20006a9197e67ba3a8b5b2a680
crypto: talitos - Fix ctr(aes) on SEC1

While ctr(aes) requires the use of a special descriptor on SEC2 (see
commit 70d355ccea89 ("crypto: talitos - fix ctr-aes-talitos")), that
special descriptor doesn't work on SEC1, see commit e738c5f15562
("powerpc/8xx: Add DT node for using the SEC engine of the MPC885").

However, the common nonsnoop descriptor works properly on SEC1 for
ctr(aes).

Add a second template for ctr(aes) that will be registered
only on SEC1.

Fixes: 70d355ccea89 ("crypto: talitos - fix ctr-aes-talitos")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c