-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nrf_security: Added support for PSA Crypto service
Added support for PSA Crypto service -Adding configuration PSA_SSF_CRYPTO_CLIENT for a local domain build which enables PSA core-less build where ssf_crypto provides the PSA crypto APIs directly. -Adding Kconfig in PSA_CORE choice: PSA_CORE_DISABLED when SSF_CLIENT is enabled which provides PSA crypto built into the SDFW image. -Enabling MBEDTLS_PSA_CRYPTO_SPM for builds when SSF_SERVER is enabled (zephyr based build with no TF-M in SDFW). -Add MBEDTLS_USE_PSA_CRYPTO for legacy build to ensure it is using PSA APIs based on SSF_CLIENT enabled. -Add logic to give SSF_CLIENT access to the psa/crypto.h from Oberon without building the PSA core locally. -Add logic to consider both BUILD_WITH_TFM or SSF_CLIENT as something that provides PSA crypto services as a client. Ref: NCSDK-15632 Signed-off-by: Ole Sæther <[email protected]> Signed-off-by: Frank Audun Kvamtrø <[email protected]>
- Loading branch information
Showing
20 changed files
with
8,198 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# NOTE that this is added as a duplication to ensure that SSF client gets | ||
# access to the relevant include folders, without PSA core or PSA drivers | ||
# being built. | ||
|
||
|
||
# Add generated path first in list (order dependent) | ||
target_include_directories(mbedcrypto_common | ||
INTERFACE | ||
${generated_include_path} | ||
) | ||
|
||
# Add regular includes | ||
# Note, the order of include matters | ||
target_include_directories(mbedcrypto_common | ||
INTERFACE | ||
# Nordic PSA headers | ||
${NRF_SECURITY_ROOT}/include | ||
# Oberon PSA headers | ||
${OBERON_PSA_PATH}/include | ||
${OBERON_PSA_PATH}/library | ||
# Mbed TLS (mbedcrypto) PSA headers | ||
${ARM_MBEDTLS_PATH}/include | ||
${ARM_MBEDTLS_PATH}/library | ||
) | ||
|
||
target_sources(${mbedcrypto_target} | ||
PRIVATE | ||
${CMAKE_CURRENT_LIST_DIR}/ssf_crypto.c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
config PSA_SSF_CRYPTO_CLIENT | ||
bool | ||
prompt "PSA crypto provided through SSF" | ||
default y | ||
depends on SSF_CLIENT && SSF_PSA_CRYPTO_SERVICE_ENABLED |
Oops, something went wrong.