crypto: omap-aes - Fix CTR mode
authorVutla, Lokesh <lokeshvutla@ti.com>
Tue, 7 Jul 2015 15:31:43 +0000 (21:01 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 8 Jul 2015 07:18:42 +0000 (15:18 +0800)
commit310b0d55f0301908461191db392ecee01735b3ec
tree146bace367d9139d9e84d5921c26c59544bf77da
parent2b93f7ee0836d1dbcfcf8560dd2a34cd51b3ff21
crypto: omap-aes - Fix CTR mode

Algo self tests are failing for CTR mode with omap-aes driver,
giving the following error:

[  150.053644]       omap_aes_crypt: request size is not exact amount of AES blocks
[  150.061262] alg: skcipher: encryption failed on test 5 for ctr-aes-omap: ret=22

This is because the input length is not aligned with AES_BLOCK_SIZE.
Adding support for omap-aes driver for inputs with length not aligned
with AES_BLOCK_SIZE.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c