crypto: talitos - reduce max key size for SEC1
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 21 May 2019 13:34:09 +0000 (13:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 09:42:57 +0000 (11:42 +0200)
commit0ae9be948390cb04b2c1959c2b14400cfccb2a29
tree53f47bce0c0c365fd14c1dc2ec796900fac8702c
parent3cb026dc28b774cf540c280a18bbdb1377b57535
crypto: talitos - reduce max key size for SEC1

commit b8fbdc2bc4e71b62646031d5df5f08aafe15d5ad upstream.

SEC1 doesn't support SHA384/512, so it doesn't require
longer keys.

This patch reduces the max key size when the driver
is built for SEC1 only.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Fixes: 03d2c5114c95 ("crypto: talitos - Extend max key length for SHA384/512-HMAC and AEAD")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/talitos.c