crypto: authenc - Move saved IV in front of the ablkcipher request
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 3 Mar 2010 14:41:08 +0000 (22:41 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 3 Mar 2010 14:41:08 +0000 (22:41 +0800)
In crypto_authenc_encrypt() we save the IV behind the ablkcipher
request. To save space on the request, we overwrite the ablkcipher
request with a ahash request after encryption. So the IV may be
overwritten by the ahash request. This patch fixes this by placing
the IV in front of the ablkcipher/ahash request.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

No differences found