]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Dec 2013 06:34:10 +0000 (22:34 -0800)
commit788f5da26bc52ddc0edaeb0d0419d7cd0a134dbd
treee504c34dccdf81780e41b09ea081096acc74bb0c
parentfe879ea2a3f181949ae832dcd9224cdc5f6ed19c
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/authenc.c