blob: feb93eaa2ed07bab6bb6b60c05981cbdcfd253be [file] [log] [blame]
# Copyright (c) 2025 Espressif Systems
# SPDX-License-Identifier: Apache-2.0
config CRYPTO_ESP32
bool "Espressif Crypto driver"
depends on DT_HAS_ESPRESSIF_ESP32_AES_ENABLED || DT_HAS_ESPRESSIF_ESP32_SHA_ENABLED
default y
help
Enable the Espressif hardware crypto drivers for AES and SHA
accelerators.
if CRYPTO_ESP32
config CRYPTO_ESP32_AES
bool "ESP32 AES Hardware Accelerator"
depends on DT_HAS_ESPRESSIF_ESP32_AES_ENABLED
default y
help
Enable support for the Espressif AES hardware accelerator.
This driver implements AES-ECB, AES-CBC, and AES-CTR modes
using the hardware AES engine through the HAL.
config CRYPTO_ESP32_SHA
bool "ESP32 SHA Hardware Accelerator"
depends on DT_HAS_ESPRESSIF_ESP32_SHA_ENABLED
default y
help
Enable support for the Espressif SHA hardware accelerator.
This driver implements SHA-224, SHA-256, SHA-384, and SHA-512
using the Espressif HAL SHA engine.
config CRYPTO_ESP32_SHA_SESSIONS_MAX
int "Max ESP32 SHA sessions"
depends on CRYPTO_ESP32_SHA
range 1 32
default 2
help
Maximum number of concurrent SHA hash sessions.
Each session uses approximately 300-400 bytes of RAM
(more for SHA-384/512 due to larger state).
config ESP32_CRYPTO_AES_SESSIONS_MAX
int "Max ESP32 AES sessions"
depends on CRYPTO_ESP32_AES
range 1 32
default 4
help
Maximum number of concurrent AES sessions.
Each session uses approximately 300-400 bytes of RAM
(more for AES-256 due to larger state).
endif # CRYPTO_ESP32