crypto: qce - Return error for non-blocksize data(ECB/CBC algorithms)
authorThara Gopinath <thara.gopinath@linaro.org>
Thu, 11 Feb 2021 20:01:23 +0000 (15:01 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 7 Mar 2021 04:13:16 +0000 (15:13 +1100)
commit44b45cdea4e3d31a3be14fd7e2b8e1584b3e670c
treeaf1f7ca4219f0a5c96d5df7df08c814114227ae6
parentf08789462255d0a2858b1d600be4099a2980a328
crypto: qce - Return error for non-blocksize data(ECB/CBC algorithms)

ECB/CBC encryption/decryption requires the data to be blocksize aligned.
Crypto engine hangs on non-block sized operations for these algorithms.
Return invalid data if data size is not blocksize aligned for these
algorithms.

Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/skcipher.c