linux-IllusionX/drivers/crypto
Tudor Ambarus 61b0dd664f crypto: atmel-tdes - Set the IV after {en,de}crypt
The req->iv of the skcipher_request is expected to contain the
last ciphertext block when the {en,de}crypt operation is done.
In case of in-place decryption, copy the ciphertext in an
intermediate buffer before decryption.

This fixes the following tcrypt tests:
alg: skcipher: atmel-cbc-des encryption test failed (wrong output IV) on test vector 0, cfg="in-place"
00000000: fe dc ba 98 76 54 32 10
alg: skcipher: atmel-cbc-tdes encryption test failed (wrong output IV) on test vector 0, cfg="in-place"
00000000: 7d 33 88 93 0f 93 b2 42

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-11-22 18:48:37 +08:00
..
allwinner crypto: sun4i-ss - fix big endian issues 2019-11-22 18:48:37 +08:00
amcc crypto: crypto4xx - fix double-free in crypto4xx_destroy_sdr 2019-11-08 23:15:52 +08:00
amlogic crypto: amlogic - fix two resources leak 2019-11-17 09:02:38 +08:00
axis crypto: artpec6 - use devm_platform_ioremap_resource() to simplify code 2019-08-09 15:11:58 +10:00
bcm crypto: bcm-spu - switch to skcipher API 2019-11-17 09:02:46 +08:00
caam crypto: skcipher - rename the crypto_blkcipher module and kconfig option 2019-11-01 13:42:47 +08:00
cavium crypto: cavium/cpt - switch to skcipher API 2019-11-17 09:02:47 +08:00
ccp crypto: ccp - add SEV command privilege separation 2019-11-22 18:48:35 +08:00
ccree crypto: ccree - update a stale reference to ablkcipher 2019-11-17 09:02:50 +08:00
chelsio crypto: chelsio - switch to skcipher API 2019-11-17 09:02:47 +08:00
hisilicon crypto: hisilicon - add DebugFS for HiSilicon SEC 2019-11-22 18:48:36 +08:00
inside-secure crypto: inside-secure - Fixed authenc w/ (3)DES fails on Macchiatobin 2019-11-17 09:02:38 +08:00
marvell crypto: marvell/cesa - rename blkcipher to skcipher 2019-11-17 09:02:49 +08:00
mediatek crypto: mediatek - switch to skcipher API 2019-11-17 09:02:47 +08:00
nx crypto: nx - remove stale comment referring to the blkcipher walk API 2019-11-17 09:02:49 +08:00
qat crypto: qat - switch to skcipher API 2019-11-17 09:02:49 +08:00
qce crypto: qce/dma - Use dma_request_chan() directly for channel request 2019-11-22 18:48:35 +08:00
rockchip crypto: rockchip - switch to skcipher API 2019-11-17 09:02:48 +08:00
stm32 crypto: stm32 - switch to skcipher API 2019-11-17 09:02:48 +08:00
ux500 crypto: ux500 - switch to skcipher API 2019-11-17 09:02:46 +08:00
virtio crypto: virtio - switch to skcipher API 2019-11-17 09:02:45 +08:00
vmx crypto: vmx/xts - use fallback for ciphertext stealing 2019-08-22 14:57:34 +10:00
atmel-aes-regs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
atmel-aes.c crypto: atmel-aes - switch to skcipher API 2019-11-17 09:02:46 +08:00
atmel-authenc.h crypto: atmel - Fix authenc support when it is set to m 2019-11-08 23:00:45 +08:00
atmel-ecc.c crypto: atmel-ecc - factor out code that can be shared 2019-05-30 15:35:45 +08:00
atmel-i2c.c crypto: atmel - Fix -Wunused-const-variable warning 2019-08-30 18:05:31 +10:00
atmel-i2c.h crypto: atmel - Fix -Wunused-const-variable warning 2019-08-30 18:05:31 +10:00
atmel-sha-regs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
atmel-sha.c crypto: atmel - Fix remaining endianess warnings 2019-11-08 23:00:46 +08:00
atmel-sha204a.c crypto: atmel-sha204a - Use device-managed registration API 2019-08-02 14:43:59 +10:00
atmel-tdes-regs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
atmel-tdes.c crypto: atmel-tdes - Set the IV after {en,de}crypt 2019-11-22 18:48:37 +08:00
exynos-rng.c crypto: exynos - use devm_platform_ioremap_resource() to simplify code 2019-08-09 15:11:59 +10:00
geode-aes.c crypto: geode-aes - convert to skcipher API and make thread-safe 2019-10-23 19:46:56 +11:00
geode-aes.h crypto: geode-aes - convert to skcipher API and make thread-safe 2019-10-23 19:46:56 +11:00
hifn_795x.c crypto: hifn - switch to skcipher API 2019-11-17 09:02:47 +08:00
img-hash.c crypto: img-hash - use devm_platform_ioremap_resource() to simplify code 2019-08-09 15:11:59 +10:00
ixp4xx_crypto.c crypto: ixp4xx - switch to skcipher API 2019-11-17 09:02:47 +08:00
Kconfig crypto: atmel - Fix build error of CRYPTO_AUTHENC 2019-11-22 18:48:36 +08:00
Makefile crypto: sun4i-ss - Move to Allwinner directory 2019-11-01 13:38:31 +08:00
mxs-dcp.c crypto: mxs - switch to skcipher API 2019-11-17 09:02:47 +08:00
n2_asm.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
n2_core.c crypto: niagara2 - switch to skcipher API 2019-11-17 09:02:48 +08:00
n2_core.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
omap-aes-gcm.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
omap-aes.c crypto: omap - switch to skcipher API 2019-11-17 09:02:45 +08:00
omap-aes.h crypto: omap - switch to skcipher API 2019-11-17 09:02:45 +08:00
omap-crypto.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
omap-crypto.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
omap-des.c crypto: omap - switch to skcipher API 2019-11-17 09:02:45 +08:00
omap-sham.c crypto: drivers - Remove dev_err() usage after platform_get_irq() 2019-08-09 15:11:38 +10:00
padlock-aes.c crypto: padlock-aes - convert to skcipher API 2019-10-23 19:46:58 +11:00
padlock-sha.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
picoxcell_crypto.c crypto: picoxcell - switch to skcipher API 2019-11-17 09:02:48 +08:00
picoxcell_crypto_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
qcom-rng.c crypto: qcom-rng - use devm_platform_ioremap_resource() to simplify code 2019-08-09 15:12:03 +10:00
s5p-sss.c crypto: s5p - switch to skcipher API 2019-11-17 09:02:46 +08:00
sahara.c crypto: sahara - switch to skcipher API 2019-11-17 09:02:48 +08:00
talitos.c crypto: talitos - switch to skcipher API 2019-11-17 09:02:49 +08:00
talitos.h crypto: talitos - drop icv_ool 2019-07-03 22:13:11 +08:00