]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Nov 2013 14:16:23 +0000 (22:16 +0800)
commit8e699972f4b8f1dde21f55feb9f935b8f3cba323
tree7719ff72d76614c68cbbfc66bb1c98d74d9bc1dc
parente9a1f8bd80c0e3cdd00146b48eb1e6523eb9d240
crypto: authenc - Find proper IV address in ablkcipher callback

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.

Cc: stable@vger.kernel.org
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/authenc.c