Eric Biggers 73bf20ef3d crypto: vmac - require a block cipher with 128-bit block size
The VMAC template assumes the block cipher has a 128-bit block size, but
it failed to check for that.  Thus it was possible to instantiate it
using a 64-bit block size cipher, e.g. "vmac(cast5)", causing
uninitialized memory to be used.

Add the needed check when instantiating the template.

Fixes: f1939f7c5645 ("crypto: vmac - New hash algorithm for intel_txt support")
Cc: <stable@vger.kernel.org> # v2.6.32+
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-07-01 21:00:41 +08:00
..
2018-05-26 09:16:44 +02:00
2018-05-26 09:16:44 +02:00
2017-11-29 17:33:29 +11:00
2017-11-03 21:35:35 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-03-31 01:33:10 +08:00
2018-04-21 00:58:34 +08:00
2018-05-16 07:23:35 +02:00
2018-02-22 22:16:54 +08:00
2018-03-03 00:03:33 +08:00
2018-04-21 00:58:30 +08:00