Skip to content

Commit

Permalink
drivers: crypto: smartbond: Support crypto device
Browse files Browse the repository at this point in the history
Add support for cipher and hash operations via the crypto engine.

Signed-off-by: Ioannis Karachalios <[email protected]>
  • Loading branch information
ioannis-karachalios committed Jul 11, 2023
1 parent e5291cd commit 26e8f6a
Show file tree
Hide file tree
Showing 4 changed files with 986 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ zephyr_library_sources_ifdef(CONFIG_CRYPTO_TINYCRYPT_SHIM crypto_tc_shim.c)
zephyr_library_sources_ifdef(CONFIG_CRYPTO_ATAES132A crypto_ataes132a.c)
zephyr_library_sources_ifdef(CONFIG_CRYPTO_MBEDTLS_SHIM crypto_mtls_shim.c)
zephyr_library_sources_ifdef(CONFIG_CRYPTO_STM32 crypto_stm32.c)
zephyr_library_sources_ifdef(CONFIG_CRYPTO_SMARTBOND crypto_smartbond.c)
zephyr_library_sources_ifdef(CONFIG_CRYPTO_NRF_ECB crypto_nrf_ecb.c)
zephyr_library_sources_ifdef(CONFIG_CRYPTO_INTEL_SHA crypto_intel_sha.c)
zephyr_library_sources_ifdef(CONFIG_CRYPTO_NPCX_SHA crypto_npcx_sha.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ source "drivers/crypto/Kconfig.intel"
source "drivers/crypto/Kconfig.npcx"
source "drivers/crypto/Kconfig.xec"
source "drivers/crypto/Kconfig.it8xxx2"
source "drivers/crypto/Kconfig.smartbond"

endif # CRYPTO
24 changes: 24 additions & 0 deletions drivers/crypto/Kconfig.smartbond
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Smartbond Cryptographic Accelerator configuration options

# Copyright (c) 2020 Markus Fuchs <[email protected]>
# SPDX-License-Identifier: Apache-2.0

menuconfig CRYPTO_SMARTBOND
bool "Smartbond Cryptographic Accelerator driver"
depends on DT_HAS_RENESAS_SMARTBOND_CRYPTO_ENABLED
help
Enable Smartbond Cryptographic Accelerator driver.

config CRYPTO_SMARTBOND_MAX_SESSION
int "Maximum of sessions Smartbond crypto driver can handle"
default 1
depends on CRYPTO_SMARTBOND
help
This can be used to tweak the amount of sessions the driver
can handle in parallel.

config CRYPTO_ASYNC
string "Enable ASYNC crypto operations."
depends on CRYPTO_SMARTBOND
help
Enable ASYNC crypto operations.
Loading

0 comments on commit 26e8f6a

Please sign in to comment.