crypto: sahara - fix AES descriptor create
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>
Tue, 7 Apr 2015 15:13:42 +0000 (17:13 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 8 Apr 2015 14:20:06 +0000 (22:20 +0800)
commit1711045fb11b4aa9afda066ce5fe68b2345d52c5
tree4d115fdff3d9753606e553c2ee2340018f758c14
parentddacc621f6597d503ed6a06e2beb1ed21df759f6
crypto: sahara - fix AES descriptor create

The AES implementation still assumes, that the hw_desc[0] has a valid
key as long as no new key needs to be set; consequentialy it always
sets the AES key header for the first descriptor and puts data into
the second one (hw_desc[1]).

Change this to only update the key in the hardware, when a new key is
to be set and use the first descriptor for data otherwise.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sahara.c
This page took 0.04956 seconds and 5 git commands to generate.