]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 6 Dec 2016 16:53:55 +0000 (16:53 +0000)
commit852561b5dfec50157ed8cb384244a78c6de8f310
treecd8a23c8ca57483b3277e8bf56e5b5235b740e89
parent9f5e1504e3d8f8367f17a4672cd774ee17c1d030
crypto: caam - do not register AES-XTS mode on LP units

BugLink: http://bugs.launchpad.net/bugs/1645453
commit 83d2c9a9c17b1e9f23a3a0c24c03cd18e4b02520 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Fixes: c6415a6016bf "crypto: caam - add support for acipher xts(aes)"
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/crypto/caam/caamalg.c