Searched hist:"73 bf20ef3df262026c3470241ae4ac8196943ffa" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/crypto/ |
H A D | vmac.c | diff 73bf20ef3df262026c3470241ae4ac8196943ffa Mon Jun 18 12:22:37 CDT 2018 Eric Biggers <ebiggers@google.com> 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>
|