crypto: talitos - check AES key size
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 21 May 2019 13:34:10 +0000 (13:34 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 May 2019 07:30:04 +0000 (15:30 +0800)
commit1ba34e71e9e56ac29a52e0d42b6290f3dc5bfd90
tree454175f63574397ffeb4e36bef94a4e905785bb4
parentb8fbdc2bc4e71b62646031d5df5f08aafe15d5ad
crypto: talitos - check AES key size

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>
drivers/crypto/talitos.c