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:09:38 +0000 (09:09 +0200)
commit39fa02a36bb37075670c0962b1f1b8cbd296de55
treee76815979b91ce6e8b5a779e3246542c5a4fed18
parente1666bcbae0c5edb6d7a752b31a8f28c59b54546
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