summaryrefslogtreecommitdiff
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-06-18 10:22:37 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2018-07-01 21:00:41 +0800
commitf0e8378df7c626e499d3de9f0143db1f4275309c (patch)
tree6c3fe0d20715c35329dd81a63448e073d3425e0d /crypto/testmgr.h
parent536fc65f48aabba6c4ef950e10765a835ba1a5d0 (diff)
downloadlinux-crypto-f0e8378df7c626e499d3de9f0143db1f4275309c.tar.gz
linux-crypto-f0e8378df7c626e499d3de9f0143db1f4275309c.zip
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: 894b82d8e942 ("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>
Diffstat (limited to 'crypto/testmgr.h')
0 files changed, 0 insertions, 0 deletions