crypto: authenc - Find proper IV address in ablkcipher callback
authorTom Lendacky <thomas.lendacky@amd.com>
Tue, 12 Nov 2013 17:46:04 +0000 (11:46 -0600)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 3 Jan 2014 04:33:26 +0000 (04:33 +0000)
commit2543b0df8eaf67f046828af6bbec82187de1990f
tree003349f1ee619461d7987a2dc49b45c47fdad930
parentd8d9e54e147be106f1439848d016801056f49d55
crypto: authenc - Find proper IV address in ablkcipher callback

commit fc019c7122dfcd69c50142b57a735539aec5da95 upstream.

When performing an asynchronous ablkcipher operation the authenc
completion callback routine is invoked, but it does not locate and use
the proper IV.

The callback routine, crypto_authenc_encrypt_done, is updated to use
the same method of calculating the address of the IV as is done in
crypto_authenc_encrypt function which sets up the callback.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
crypto/authenc.c