| # STM32 Cryptographic Accelerator configuration options |
| |
| # Copyright (c) 2020 Markus Fuchs <markus.fuchs@de.sauter-bc.com> |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| DT_COMPAT_ST_STM32_AES := st,stm32-aes |
| DT_COMPAT_ST_STM32_CRYP := st,stm32-cryp |
| |
| menuconfig CRYPTO_STM32 |
| bool "STM32 Cryptographic Accelerator driver" |
| default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_AES)) || $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_CRYP)) |
| depends on SOC_FAMILY_STM32 |
| select USE_STM32_HAL_CRYP |
| select USE_STM32_HAL_CRYP_EX |
| help |
| Enable STM32 HAL-based Cryptographic Accelerator driver. |
| |
| config CRYPTO_STM32_MAX_SESSION |
| int "Maximum of sessions STM32 crypto driver can handle" |
| default 2 |
| depends on CRYPTO_STM32 |
| help |
| This can be used to tweak the amount of sessions the driver |
| can handle in parallel. |