]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: qce - Set data unit size to message length for AES XTS transformation
authorThara Gopinath <thara.gopinath@linaro.org>
Thu, 11 Feb 2021 20:01:26 +0000 (15:01 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 7 Mar 2021 04:13:17 +0000 (15:13 +1100)
commit590930e08d0e552b0a4579866f6f8ebad58878bc
treeec6962dcf9bfb9f78a56c527a40479c2f11fd458
parente2b925542ba6d1cef8f3c35950a42c4a66519263
crypto: qce - Set data unit size to message length for AES XTS transformation

Set the register REG_ENCR_XTS_DU_SIZE to cryptlen for AES XTS
transformation. Anything else causes the engine to return back
wrong results.

Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/common.c