OSDN Git Service

crypto: talitos - Extend max key length for SHA384/512-HMAC and AEAD
authorMartin Hicks <mort@bork.org>
Tue, 2 May 2017 13:38:35 +0000 (09:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jul 2017 05:44:58 +0000 (07:44 +0200)
commitd05fbdbe6d1c2b00f1d2c3010a4a4c710fb4097a
tree30463d7ac3ec2fbc7d0860fd017918517c74b357
parent8f93a9aa1d654c691602359d426ab66997947b1c
crypto: talitos - Extend max key length for SHA384/512-HMAC and AEAD

commit 03d2c5114c95797c0aa7d9f463348b171a274fd4 upstream.

An updated patch that also handles the additional key length requirements
for the AEAD algorithms.

The max keysize is not 96.  For SHA384/512 it's 128, and for the AEAD
algorithms it's longer still.  Extend the max keysize for the
AEAD size for AES256 + HMAC(SHA512).

Fixes: 357fb60502ede ("crypto: talitos - add sha224, sha384 and sha512 to existing AEAD algorithms")
Signed-off-by: Martin Hicks <mort@bork.org>
Acked-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/talitos.c