]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: talitos - check AES key size
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 21 May 2019 13:34:10 +0000 (13:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Sep 2019 07:08:06 +0000 (09:08 +0200)
commit3dbb17c438ad0705b9b6b2de7a082342f93ed32b
tree6ed2b382a756a78cc25a62547573cdc1acaa9bcc
parent5432923a6b208b253d95d95cee72d0508c803421
crypto: talitos - check AES key size

commit 1ba34e71e9e56ac29a52e0d42b6290f3dc5bfd90 upstream.

Although the HW accepts any size and silently truncates
it to the correct length, the extra tests expects EINVAL
to be returned when the key size is not valid.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Fixes: 4de9d0b547b9 ("crypto: talitos - Add ablkcipher algorithms")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/talitos.c