]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ccree: save ciphertext for CTS IV
authorGilad Ben-Yossef <gilad@benyossef.com>
Wed, 23 Aug 2017 09:12:05 +0000 (12:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2017 23:22:35 +0000 (16:22 -0700)
commit9cba88e0279fc3e4382bba1eb3ebc99ad9f72cb1
tree9fb6077db2855a747d918a382c541e8c6652554b
parentef9ef084135f82eb3770c74e6ad446b12e9a9ea1
staging: ccree: save ciphertext for CTS IV

The crypto API requires saving the last blocks of ciphertext
in req->info for use as IV for CTS mode. The ccree driver
was not doing this. This patch fixes that.

The bug was manifested with cts(cbc(aes)) mode in tcrypt tests.

Fixes: c66430d5692e ("Add CryptoCell skcipher support")
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_cipher.c