crypto: s5p-sss - Fix kernel Oops in AES-ECB mode
authorKamil Konieczny <k.konieczny@partner.samsung.com>
Wed, 7 Feb 2018 15:52:09 +0000 (16:52 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Feb 2018 10:13:56 +0000 (18:13 +0800)
commitc927b080c67e3e97193c81fc1d27f4251bf4e036
treefc01da2eba350d3ee5b96c62c64d61cddbb1212e
parent178e834c47b0d01352c48730235aae69898fbc02
crypto: s5p-sss - Fix kernel Oops in AES-ECB mode

In AES-ECB mode crypt is done with key only, so any use of IV
can cause kernel Oops. Use IV only in AES-CBC and AES-CTR.

Signed-off-by: Kamil Konieczny <k.konieczny@partner.samsung.com>
Reported-by: Anand Moon <linux.amoon@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Cc: stable@vger.kernel.org # can be applied after commit 8f9702aad138
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/s5p-sss.c