crypto: vmac - Make VMAC work when blocks aren't aligned
authorSalman Qazi <sqazi@google.com>
Fri, 5 Oct 2012 21:24:14 +0000 (14:24 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 15 Oct 2012 14:33:20 +0000 (22:33 +0800)
commitba1ee070909fae01248b8117da1706f3cf2bfd1b
tree98d982702fdc17a9699387c59583e9a5ecf0b984
parent7291a932c6e27d9768e374e9d648086636daf61c
crypto: vmac - Make VMAC work when blocks aren't aligned

VMAC implementation, as it is, does not work with blocks that
are not multiples of 128-bytes.  Furthermore, this is a problem
when using the implementation on scatterlists, even
when the complete plain text is 128-byte multiple, as the pieces
that get passed to vmac_update can be pretty much any size.

I also added test cases for unaligned blocks.

Signed-off-by: Salman Qazi <sqazi@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.h
crypto/vmac.c
include/crypto/vmac.h