]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Sun, 10 Sep 2017 23:08:41 +0000 (18:08 -0500)
commit0ddc27d4bbf91999538482731f696870c7b7c498
tree7487c0a320ee6216feaf1d1961bc71f3b7d6e33b
parent3bfa1924769e596911176bf028eef2280d7ed65d
staging: ccree: save ciphertext for CTS IV

BugLink: http://bugs.launchpad.net/bugs/1716284
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/staging/ccree/ssi_cipher.c