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)
commit737aed947f9b5bd749a2684e13572ee99a1b8bae
tree9fb6077db2855a747d918a382c541e8c6652554b
parent19dfd8810716060a7075fe420ea4e98d7d65be86
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: 302ef8ebb4b2 ("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