-
Notifications
You must be signed in to change notification settings - Fork 8.1k
modules: hal_silabs: Add config for SiSDK Protocol Crypto #97060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
modules: hal_silabs: Add config for SiSDK Protocol Crypto #97060
Conversation
example, Bluetooth LE and a proprietary 2.4 GHz stack) on Gecko SoCs. | ||
|
||
config SILABS_SISDK_PROTOCOL_CRYPTO | ||
bool "Accelerated Crypto Primitives (RADIOAES)" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
1ad1c6f
to
53a8f50
Compare
example, Bluetooth LE and a proprietary 2.4 GHz stack) on Gecko SoCs. | ||
|
||
config SILABS_SISDK_PROTOCOL_CRYPTO | ||
bool "Accelerated Crypto Primitives - RADIOAES" |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
53a8f50
to
8a084ad
Compare
There was a problem hiding this 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 inBT_SILABS_EFR32
(the issue was already here sinceSOC_GECKO_USE_RAIL
) alsodepends 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
. Soselect MBEDTLS
,MBEDTLS_PSA_CRYPTO_C
andMBEDTLS_ENTROPY_C
should be moved in theSILABS_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. |
8a084ad
to
7cf2e20
Compare
@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]>
7cf2e20
to
0734c90
Compare
|
A Kconfig options for the SiSDK Protocol Crypto library, which provides accelerated cryptographic primitives using the RADIOAES peripherals for Series-2 devices.