crypto: arm-aes - fix encryption of unaligned data
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 25 Jul 2014 23:42:30 +0000 (19:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Aug 2014 21:52:36 +0000 (14:52 -0700)
commitf11792d07689fe784d8c2a82460bdd57a362f778
treeafc88dbfc5083e6576977a0e22397430a064bfe7
parent735fbc72bee7f994b4dc42836f7add4b1b2fd8c4
crypto: arm-aes - fix encryption of unaligned data

commit f3c400ef473e00c680ea713a66196b05870b3710 upstream.

Fix the same alignment bug as in arm64 - we need to pass residue
unprocessed bytes as the last argument to blkcipher_walk_done.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/crypto/aesbs-glue.c