Skip to content

Conversation

db00lean
Copy link
Contributor

@db00lean db00lean commented Oct 6, 2025

A Kconfig options for the SiSDK Protocol Crypto library, which provides accelerated cryptographic primitives using the RADIOAES peripherals for Series-2 devices.

example, Bluetooth LE and a proprietary 2.4 GHz stack) on Gecko SoCs.

config SILABS_SISDK_PROTOCOL_CRYPTO
bool "Accelerated Crypto Primitives (RADIOAES)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a promptless symbol (no description text => hidden from config UI), since it's an internal API used by the BT controller and other protocols.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

depends on SOC_GECKO_HAS_RADIO
help
This component provides accelerated cryptographic primitives using the
RADIOAES (series-2) peripherals.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a sentence "This HAL library is used internally in wireless protocols, and can not be used directly." or something like that, or remove the help text completely since it's promptless.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed text for promptless Kconfig

@db00lean db00lean force-pushed the add_silabs_crypto_config branch from 1ad1c6f to 53a8f50 Compare October 8, 2025 16:24
@db00lean db00lean requested a review from asmellby October 8, 2025 16:25
example, Bluetooth LE and a proprietary 2.4 GHz stack) on Gecko SoCs.

config SILABS_SISDK_PROTOCOL_CRYPTO
bool "Accelerated Crypto Primitives - RADIOAES"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To get a promptless symbol, you have to remove the description after bool.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@db00lean db00lean force-pushed the add_silabs_crypto_config branch from 53a8f50 to 8a084ad Compare October 13, 2025 16:40
Copy link
Contributor

@jerome-pouiller jerome-pouiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I didn't deeply looked at the dependencies:

  • depends on SOC_GECKO_HAS_RADIO should be reported in BT_SILABS_EFR32 (the issue was already here since SOC_GECKO_USE_RAIL) also depends on SOC_GECKO_HAS_RADIO (see https://docs.zephyrproject.org/latest/build/kconfig/tips.html#select-pitfalls)
  • I assume mbedtls is only required for sl_protocol_crypto. So select MBEDTLS, MBEDTLS_PSA_CRYPTO_C and MBEDTLS_ENTROPY_C should be moved in the SILABS_SISDK_PROTOCOL_CRYPTO symbol.

@asmellby
Copy link
Contributor

I assume mbedtls is only required for sl_protocol_crypto. So select MBEDTLS, MBEDTLS_PSA_CRYPTO_C and MBEDTLS_ENTROPY_C should be moved in the SILABS_SISDK_PROTOCOL_CRYPTO symbol.

No. The protocol crypto does not use Mbed TLS, it's a dedicated engine that uses a low-level HAL called from inside the radio library.

@db00lean db00lean force-pushed the add_silabs_crypto_config branch from 8a084ad to 7cf2e20 Compare October 14, 2025 17:38
@cvinayak cvinayak removed their request for review October 15, 2025 06:43
@jhedberg
Copy link
Member

@db00lean you'll need to rebase this to fix a merge conflict

A Kconfig options for the SiSDK Protocol Crypto library, which provides
accelerated cryptographic primitives using the RADIOAES peripherals for
Series-2 devices.

Signed-off-by: David Boullie <[email protected]>
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants