zephyr/drivers/crypto
Loic Domaigne 28f37e522a drivers: crypto: crypto_ataes132a fix memset undefined behavior
Coverity reported a memory - illegal accesses when using memset in
ataes132a_aes_ecb_block(). This can happen when the input block is
exactly 16 bytes: memset(&param_buffer[19], 0x0, 0) is called. But this
is an undefined behaviour in C even if size is 0, as &param_buffer[19]
is an invalid pointer.

The fix consists of simply skipping memset() in this case, since there's
nothing to zero out.

Coverity CID: 434642

Signed-off-by: Loic Domaigne <tech@domaigne.com>
2025-07-10 10:13:17 -05:00
..
CMakeLists.txt driver: crypto: add crypto driver for rts5912 2025-06-07 13:29:07 +01:00
crypto_ataes132a_priv.h
crypto_ataes132a.c drivers: crypto: crypto_ataes132a fix memset undefined behavior 2025-07-10 10:13:17 -05:00
crypto_cc23x0.c drivers: crypto: cc23x0: Add support for DMA mode 2025-06-11 16:06:55 -07:00
crypto_intel_sha_priv.h
crypto_intel_sha_registers.h
crypto_intel_sha.c
crypto_it8xxx2_sha_v2.c
crypto_it8xxx2_sha.c
crypto_it51xxx_sha.c
crypto_mchp_xec_symcr.c
crypto_mcux_dcp.c
crypto_mtls_shim.c
crypto_npcx_sha.c
crypto_nrf_ecb.c
crypto_rts5912_priv.h driver: crypto: add crypto driver for rts5912 2025-06-07 13:29:07 +01:00
crypto_rts5912_sha.c driver: crypto: add crypto driver for rts5912 2025-06-07 13:29:07 +01:00
crypto_si32.c
crypto_smartbond.c
crypto_stm32_priv.h
crypto_stm32.c
Kconfig driver: crypto: add crypto driver for rts5912 2025-06-07 13:29:07 +01:00
Kconfig.ataes132a
Kconfig.cc23x0 drivers: crypto: cc23x0: Add support for DMA mode 2025-06-11 16:06:55 -07:00
Kconfig.intel
Kconfig.it8xxx2
Kconfig.it51xxx
Kconfig.mcux_dcp
Kconfig.npcx
Kconfig.nrf_ecb
Kconfig.rts5912 driver: crypto: add crypto driver for rts5912 2025-06-07 13:29:07 +01:00
Kconfig.si32
Kconfig.smartbond
Kconfig.stm32
Kconfig.xec drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00