Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a67e5e1

Browse files
committedMar 19, 2025·
nrf_security: Add pk.c from Oberon PSA and not MbedTLS
Use the pk.c file from the Oberon PSA core instead of the MbedTLS. Oberon copied this file to their repo because of it manually defines the PSA_EXPORT_KEY_PAIR_OR_PUBLIC_MAX_SIZE which is already defined by the Oberon PSA core. The file in the Oberon PSA repo is the same with the MbedTLS 3.6.2 version apart from the removal of this define. Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
1 parent 1410c24 commit a67e5e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎subsys/nrf_security/src/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,16 @@ if(NOT CONFIG_MBEDTLS_PSA_CRYPTO_SPM AND NOT BUILD_INSIDE_TFM)
8080
cipher.c
8181
cipher_wrap.c
8282
md.c
83-
pk.c
8483
pk_ecc.c
8584
pk_wrap.c
8685
pkwrite.c
8786
psa_util.c
8887
)
88+
89+
# Oberon copied this file to avoid double definition of PSA_EXPORT_KEY_PAIR_OR_PUBLIC_MAX_SIZE
90+
append_with_prefix(src_crypto ${OBERON_PSA_CORE_PATH}/programs/ssl/library
91+
pk.c
92+
)
8993
endif()
9094

9195
# Library for mbed TLS crypto toolbox functionality

0 commit comments

Comments
 (0)
Please sign in to comment.