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)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Nov 2017 21:12:43 +0000 (22:12 +0100)
commitf9c9c73b86b0950f670f5df311fc94910c4cd489
tree8f7eeb7895319c680ac26938f28ed5466a6f75b5
parent1fc0b43a1df72704b4d5f6cd5a2ca6c09736d67f
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).

Cc: <stable@vger.kernel.org> # 3.6+
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: Willy Tarreau <w@1wt.eu>
drivers/crypto/talitos.c