crypto: mxs-dcp - Fix AES issues
The DCP driver does not obey cryptlen, when doing android CTS this results in passing to hardware input stream lengths which are not multiple of block size. Add a check to prevent future erroneous stream lengths from reaching the hardware and adjust the scatterlist walking code to obey cryptlen. Also properly copy-out the IV for chaining. Signed-off-by: NRadu Solea <radu.solea@nxp.com> Signed-off-by: NFranck LENORMAND <franck.lenormand@nxp.com> Signed-off-by: NLeonard Crestez <leonard.crestez@nxp.com> Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
Showing
想要评论请 注册 或 登录