]> 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>
Sat, 21 Sep 2019 05:12:45 +0000 (07:12 +0200)
commit64aa7ed4482fb146fbae9a09f1ef651d8daf80e3
tree49f47b25cdcb88e7018d48bd34b4e3d9debe3ea4
parent0ad99030b1435d1aa1ad2dc844689c621a0d9c23
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