Skip to content

Commit 6461c73

Browse files
committed
drivers: crypto: Add support for cc23x0 AES
Add support for AES module to cc23x0 SoC. The driver supports the following modes: - ECB encryption only (since decryption is not supported by the HW) - CTR - CCM Signed-off-by: Stoyan Bogdanov <[email protected]> Signed-off-by: Julien Panis <[email protected]>
1 parent 90919eb commit 6461c73

File tree

5 files changed

+737
-0
lines changed

5 files changed

+737
-0
lines changed

drivers/crypto/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ zephyr_library_sources_ifdef(CONFIG_CRYPTO_IT8XXX2_SHA crypto_it8xxx2_sha.c)
1414
zephyr_library_sources_ifdef(CONFIG_CRYPTO_IT8XXX2_SHA_V2 crypto_it8xxx2_sha_v2.c)
1515
zephyr_library_sources_ifdef(CONFIG_CRYPTO_MCUX_DCP crypto_mcux_dcp.c)
1616
zephyr_library_sources_ifdef(CONFIG_CRYPTO_SI32 crypto_si32.c)
17+
zephyr_library_sources_ifdef(CONFIG_CRYPTO_CC23X0 crypto_cc23x0.c)
1718
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)

drivers/crypto/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,6 @@ source "drivers/crypto/Kconfig.it8xxx2"
8484
source "drivers/crypto/Kconfig.mcux_dcp"
8585
source "drivers/crypto/Kconfig.si32"
8686
source "drivers/crypto/Kconfig.smartbond"
87+
source "drivers/crypto/Kconfig.cc23x0"
8788

8889
endif # CRYPTO

drivers/crypto/Kconfig.cc23x0

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# CC23X0 AES accelerator configuration options
2+
3+
# Copyright (c) 2024 BayLibre, SAS
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config CRYPTO_CC23X0
7+
bool "CC23X0 AES accelerator driver"
8+
default y
9+
depends on DT_HAS_TI_CC23X0_AES_ENABLED
10+
help
11+
Enable TI CC23X0 AES accelerator driver.
12+
This driver supports the following modes:
13+
- ECB (Electronic Code Book) encryption only (decryption not supported by the hardware)
14+
- CTR (Counter)
15+
- CCM (CTR with CBC-MAC)

0 commit comments

Comments
 (0)