android_kernel_samsung_a7y1.../drivers/crypto
Radu Solea 8fe9414474 crypto: mxs-dcp - Fix AES issues
[ Upstream commit fadd7a6e616b89c7f4f7bfa7b824f290bab32c3c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 12:32:55 +02:00
..
amcc Revert "crypto: crypto4xx - properly set IV after de- and encrypt" 2020-04-06 19:04:43 +02:00
caam crypto: caam - fix concurrency issue in givencrypt descriptor 2020-04-07 08:08:16 +02:00
ccp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fmp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
marvell A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
qat crypto: qat - Silence smp_processor_id() warning 2020-04-07 08:07:48 +02:00
qce A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sunxi-ss A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ux500 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmx crypto: vmx - ghash: do nosimd fallback manually 2020-04-06 18:20:52 +02:00
atmel-aes-regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atmel-aes.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atmel-sha-regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atmel-sha.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atmel-tdes-regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atmel-tdes.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bfin_crc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bfin_crc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
geode-aes.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
geode-aes.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hifn_795x.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
img-hash.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ixp4xx_crypto.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mv_cesa.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mv_cesa.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mxs-dcp.c crypto: mxs-dcp - Fix AES issues 2020-04-07 12:32:55 +02:00
n2_asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
n2_core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
n2_core.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
omap-aes.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
omap-des.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
omap-sham.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
padlock-aes.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
padlock-sha.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
picoxcell_crypto_regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
picoxcell_crypto.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
s5p-sss.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sahara.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
talitos.c crypto: talitos - fix missing break in switch statement 2020-04-07 07:36:33 +02:00
talitos.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30