]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: nx - saves chaining value from co-processor
authorFionnuala Gunter <fin@linux.vnet.ibm.com>
Wed, 7 Aug 2013 23:15:50 +0000 (18:15 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Aug 2013 06:41:29 +0000 (16:41 +1000)
commitcc76daf793287b2c51b0b66153072b23cdb51c1c
tree3ce17ea23d8d01386149b9b7cc5a4a7ecaa99074
parente83872c989fb704748956c0bf1b69874a35492c6
crypto: nx - saves chaining value from co-processor

This patch fixes a bug that is triggered when cts(cbc(aes)) is used with
nx-crypto driver on input larger than 32 bytes.

The chaining value from co-processor was not being saved. This value is
needed because it is used as the IV by cts(cbc(aes)).

Signed-off-by: Fionnuala Gunter <fin@linux.vnet.ibm.com>
Reviewed-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/nx/nx-aes-cbc.c