original_kernel/drivers/crypto/ccree
Gilad Ben-Yossef 2b5ac17463 crypto: ccree - don't copy zero size ciphertext
For decryption in CBC mode we need to save the last ciphertext block
for use as the next IV. However, we were trying to do this also with
zero sized ciphertext resulting in a panic.

Fix this by only doing the copy if the ciphertext length is at least
of IV size.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-01-25 18:41:51 +08:00
..
Makefile
cc_aead.c
cc_aead.h
cc_buffer_mgr.c crypto: ccree - fix free of unallocated mlli buffer 2019-01-25 18:41:51 +08:00
cc_buffer_mgr.h
cc_cipher.c crypto: ccree - don't copy zero size ciphertext 2019-01-25 18:41:51 +08:00
cc_cipher.h
cc_crypto_ctx.h
cc_debugfs.c
cc_debugfs.h
cc_driver.c crypto: ccree - shared irq lines are not a bug 2019-01-25 18:41:51 +08:00
cc_driver.h crypto: ccree - remove legacy leftover 2019-01-25 18:41:51 +08:00
cc_fips.c
cc_fips.h
cc_hash.c
cc_hash.h
cc_host_regs.h
cc_hw_queue_defs.h
cc_ivgen.c
cc_ivgen.h
cc_kernel_regs.h
cc_lli_defs.h
cc_pm.c
cc_pm.h
cc_request_mgr.c
cc_request_mgr.h
cc_sram_mgr.c
cc_sram_mgr.h