]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - do not register AES-XTS mode on LP units
authorSven Ebenfeld <sven.ebenfeld@gmail.com>
Mon, 7 Nov 2016 17:51:34 +0000 (18:51 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 13 Nov 2016 09:39:28 +0000 (17:39 +0800)
commit84d8a2751e2a287d525a7cbe5bcbccb4f8bc9eff
treeeedaa996841103fbe4863d8b771ce08aafefb38d
parent58a19ac99ca8e502f8fa37b53114e3d0a72cfcad
crypto: caam - do not register AES-XTS mode on LP units

When using AES-XTS on a Wandboard, we receive a Mode error:
caam_jr 2102000.jr1: 20001311: CCB: desc idx 19: AES: Mode error.

According to the Security Reference Manual, the Low Power AES units
of the i.MX6 do not support the XTS mode. Therefore we must not
register XTS implementations in the Crypto API.

Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Cc: <stable@vger.kernel.org> # 4.4+
Fixes: c65277057f4b "crypto: caam - add support for acipher xts(aes)"
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c