]> www.infradead.org Git - users/dwmw2/linux.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>
Sat, 9 Sep 2017 15:39:19 +0000 (17:39 +0200)
commit2d94a1e80a9c5d5a72574eb6b55c682943d1e93d
tree627dc50c82b526951fa6da0b687f9a99625317f1
parenta55273d7af6c0e206d166c33870c95e768e6278c
staging: ccree: save ciphertext for CTS IV

commit 737aed947f9b5bd749a2684e13572ee99a1b8bae upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_cipher.c