-
Couldn't load subscription status.
- Fork 1.4k
entropy: Add PSA rng as the entropy provider for the nrf54h20 #17200
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
Changes from all commits
0333ccc
4f716fc
49ed3d5
bb26f10
02f1d97
55df3dc
f1d2598
f0612ca
4e9eef9
0f339c0
05d6b95
be1877c
1291ebe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # | ||
| # Copyright (c) 2024 Nordic Semiconductor ASA | ||
| # | ||
| # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| # | ||
|
|
||
| # Disable serial and UART interface. | ||
| CONFIG_SERIAL=n | ||
| CONFIG_UART_CONSOLE=n | ||
| CONFIG_LOG=n | ||
|
|
||
| # RAM usage configuration | ||
| CONFIG_HEAP_MEM_POOL_SIZE=8192 | ||
| CONFIG_MAIN_STACK_SIZE=2048 | ||
| CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 | ||
|
|
||
| # BT configuration | ||
| CONFIG_BT=y | ||
| CONFIG_BT_HCI_RAW=y | ||
| CONFIG_BT_MAX_CONN=1 | ||
| CONFIG_BT_CTLR_ASSERT_HANDLER=y | ||
| CONFIG_BT_PERIPHERAL=y | ||
| CONFIG_BT_CENTRAL=n | ||
| CONFIG_BT_BUF_ACL_RX_SIZE=502 | ||
| CONFIG_BT_BUF_ACL_TX_SIZE=251 | ||
| CONFIG_BT_CTLR_DATA_LENGTH_MAX=251 | ||
| CONFIG_BT_CTLR_PHY_2M=n | ||
|
|
||
| # ipc_radio | ||
| CONFIG_IPC_RADIO_BT=y | ||
| CONFIG_IPC_RADIO_BT_HCI_IPC=y | ||
|
|
||
| # NRF_802154_ENCRYPTION is not enabled by default in the `overlay-802154.conf` file | ||
| # that is pulled in by NETCORE_IPC_RADIO_IEEE802154 in application's Kconfig.sysbuild. | ||
| # For Wi-Fi builds, this option will not get applied anyway. | ||
| CONFIG_NRF_802154_ENCRYPTION=y |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,12 @@ config NORDIC_SECURITY_BACKEND | |
| Note that this will enable nrf_oberon by default. Multiple backends is | ||
| not supported. | ||
|
|
||
| config PSA_SSF_CRYPTO_CLIENT | ||
| bool | ||
| prompt "PSA crypto provided through SDFW Service Framework (SSF)" | ||
| default y | ||
| depends on SSF_CLIENT && SSF_PSA_CRYPTO_SERVICE_ENABLED | ||
|
||
|
|
||
| config NRF_SECURITY | ||
tomi-font marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| bool | ||
| prompt "Enable nRF Security" if !PSA_PROMPTLESS | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| /* | ||
| * Copyright (c) 2024 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| /* This is intentionally empty since the SSF doesn't support any configuration yet. */ |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /* | ||
| * Copyright (c) 2025 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| #include <psa/crypto.h> | ||
|
|
||
| /* This define exists in the psa_crypto.c file, I kept the same | ||
| * name here so that it can be searched the same way. | ||
| * In the psa_core.c this define is the concatenation of | ||
| * PSA_CRYPTO_SUBSYSTEM_DRIVER_WRAPPERS_INITIALIZED (=0x1)| | ||
| * PSA_CRYPTO_SUBSYSTEM_KEY_SLOTS_INITIALIZED (=0x2)| | ||
| * PSA_CRYPTO_SUBSYSTEM_TRANSACTION_INITIALIZED (=0x4) | ||
| * Just for conformity I kept the same value here. | ||
| */ | ||
| #define PSA_CRYPTO_SUBSYSTEM_ALL_INITIALISED (0x7) | ||
|
|
||
| /* This function is defined in psa_crypto_core.h */ | ||
| int psa_can_do_hash(psa_algorithm_t hash_alg) | ||
| { | ||
| (void) hash_alg; | ||
|
Check warning on line 22 in subsys/nrf_security/src/ssf_secdom/ssf_psa_core_compatibility.c
|
||
| /* No initialization is needed when SSF is used, so just return the | ||
| * expected value here. | ||
|
Check failure on line 24 in subsys/nrf_security/src/ssf_secdom/ssf_psa_core_compatibility.c
|
||
| */ | ||
| return PSA_CRYPTO_SUBSYSTEM_ALL_INITIALISED; | ||
|
Check warning on line 26 in subsys/nrf_security/src/ssf_secdom/ssf_psa_core_compatibility.c
|
||
| } | ||
|
|
||
| /* This function is defined in psa_crypto_core.h */ | ||
| int psa_can_do_cipher(psa_key_type_t key_type, psa_algorithm_t cipher_alg) | ||
| { | ||
| (void) key_type; | ||
|
Check warning on line 32 in subsys/nrf_security/src/ssf_secdom/ssf_psa_core_compatibility.c
|
||
| (void) cipher_alg; | ||
|
Check warning on line 33 in subsys/nrf_security/src/ssf_secdom/ssf_psa_core_compatibility.c
|
||
| /* No initialization is needed when SSF is used, so just return the | ||
| * expected value here. | ||
|
Check failure on line 35 in subsys/nrf_security/src/ssf_secdom/ssf_psa_core_compatibility.c
|
||
| */ | ||
| return PSA_CRYPTO_SUBSYSTEM_ALL_INITIALISED; | ||
|
Check warning on line 37 in subsys/nrf_security/src/ssf_secdom/ssf_psa_core_compatibility.c
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,3 +20,11 @@ | |
| &usbhs { | ||
| status = "disabled"; | ||
| }; | ||
|
|
||
|
||
| &cpusec_cpuapp_ipc { | ||
| status = "disabled"; | ||
| }; | ||
|
|
||
| &cpusec_bellboard { | ||
| status = "disabled"; | ||
| }; | ||
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.
Are those two
/librarypaths actually needed?