crypto: omap-aes - Fix CTR mode counter length
authorJoel Fernandes <joelf@ti.com>
Tue, 29 Oct 2013 22:37:38 +0000 (17:37 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 30 Oct 2013 04:02:59 +0000 (12:02 +0800)
commit8ed49c7675e106bc23f34ac065d8add75e0e2f45
tree862bb3ad3fa9e03d1c821e1e443db6b992a394ed
parent718249d7f0657a5edec0131afbfb0d28fbf03e46
crypto: omap-aes - Fix CTR mode counter length

NIST vectors for CTR mode in testmgr.h assume the entire IV as the counter. To
get correct results that match the output of these vectors, we need to set the
counter length correctly.

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