Patch "crypto: caam - do not register AES-XTS mode on LP units" has been added to the 4.8-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
crypto: caam - do not register AES-XTS mode on LP units
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
crypto-caam-do-not-register-aes-xts-mode-on-lp-units.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
83d2c9a9c17b1e9f23a3a0c24c03cd18e4b02520Mon Sep 17 00:00:00 2001
From: Sven Ebenfeld <[email protected]>
Date: Mon, 7 Nov 2016 18:51:34 +0100
Subject: crypto: caam - do not register AES-XTS mode on LP units
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Sven Ebenfeld <[email protected]>
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.
--- drivers/crypto/caam/caamalg.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/crypto/caam/caamalg.c +9 -0
@@ -4542,6 +4542,15 @@ static int __init caam_algapi_init(void)if (!aes_inst && (alg_sel ==OP_ALG_ALGSEL_AES ))continue ; +/* +* Check support for AES modes not available +* on LP devices. +*/ +if ((cha_vid &CHA_ID_LS_AES_MASK ) ==CHA_ID_LS_AES_LP ) +if ((alg->class1_alg_type &OP_ALG_AAI_MASK ) == +OP_ALG_AAI_XTS ) +continue ; + t_alg =caam_alg_alloc (alg);if (IS_ERR (t_alg)) { err =PTR_ERR (t_alg);
Patches currently in stable-queue which might be from [email protected] are
queue-4.8/crypto-caam-do-not-register-aes-xts-mode-on-lp-units.patch