diff options
author | Radu Solea <radu.solea@nxp.com> | 2018-10-02 19:01:52 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-10-08 13:45:41 +0800 |
commit | fadd7a6e616b89c7f4f7bfa7b824f290bab32c3c (patch) | |
tree | 965c14e5bc8ca7ce5463bfc2c8f3548a91f49469 /drivers/crypto/caam | |
parent | c709eebaf5c5faa8a0f140355f9cfe67e8f7afb1 (diff) | |
download | blackbird-obmc-linux-fadd7a6e616b89c7f4f7bfa7b824f290bab32c3c.tar.gz blackbird-obmc-linux-fadd7a6e616b89c7f4f7bfa7b824f290bab32c3c.zip |
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: Radu Solea <radu.solea@nxp.com>
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam')
0 files changed, 0 insertions, 0 deletions