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 drivers: crypto: Place API into iterable section 2024-12-06 12:13:37 +01:00
crypto_it8xxx2_sha_v2.c drivers: crypto: Place API into iterable section 2024-12-06 12:13:37 +01:00
crypto_it8xxx2_sha.c drivers: crypto: Place API into iterable section 2024-12-06 12:13:37 +01:00
crypto_it51xxx_sha.c drivers: crypto: add it51xxx sha256 driver 2025-05-16 19:07:37 +02:00
crypto_mchp_xec_symcr.c drivers: crypto: Place API into iterable section 2024-12-06 12:13:37 +01:00
crypto_mcux_dcp.c drivers: crypto: Place API into iterable section 2024-12-06 12:13:37 +01:00
crypto_mtls_shim.c drivers: crypto: Place API into iterable section 2024-12-06 12:13:37 +01:00
crypto_npcx_sha.c drivers: crypto: Place API into iterable section 2024-12-06 12:13:37 +01:00
crypto_nrf_ecb.c drivers: crypto: Place API into iterable section 2024-12-06 12:13:37 +01:00
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 drivers: crypto: Place API into iterable section 2024-12-06 12:13:37 +01:00
crypto_smartbond.c drivers: crypto: Place API into iterable section 2024-12-06 12:13:37 +01:00
crypto_stm32_priv.h
crypto_stm32.c drivers: crypto: fix spelling of "below" 2025-02-19 18:51:13 +01:00
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 drivers: crypto: add it51xxx sha256 driver 2025-05-16 19:07:37 +02:00
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