Home
last modified time | relevance | path

Searched hist:ee483d32ee1a1a7f7d7e918fbc350c790a5af64a (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/crypto/
H A Dtalitos.cdiff ee483d32ee1a1a7f7d7e918fbc350c790a5af64a Tue May 21 15:34:12 CEST 2019 Christophe Leroy <christophe.leroy@c-s.fr> crypto: talitos - check data blocksize in ablkcipher.

When data size is not a multiple of the alg's block size,
the SEC generates an error interrupt and dumps the registers.
And for NULL size, the SEC does just nothing and the interrupt
is awaited forever.

This patch ensures the data size is correct before submitting
the request to the SEC engine.

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>