mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 00:24:16 +01:00
2f0eb51aae
On dual world platforms, we want to run the PK module (pk.c) on the NS side so TLS can use PSA APIs via the PK interface. PK currently has a hard dependency on mbedtls_ecc_group_to_psa() which is declared in crypto_extra.h, but only defined in psa_crypto.c, which is only built for the S side. Without this change, dual world platforms get error messages like the following. [Error] @0,0: L6218E: Undefined symbol mbedtls_ecc_group_to_psa (referred from BUILD/LPC55S69_NS/ARM/mbed-os/features/mbedtls/mbed-crypto/src/pk.o) Make mbedtls_ecc_group_to_psa() inline within crypto_extra.h so that it is available to both NS and S world code. Fixes #3300 Signed-off-by: Darryl Green <darryl.green@arm.com> Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
5 lines
193 B
Plaintext
5 lines
193 B
Plaintext
Bugfix
|
|
* Fix potential linker errors on dual world platforms by inlining
|
|
mbedtls_gcc_group_to_psa(). This allows the pk.c module to link separately
|
|
from psa_crypto.c. Fixes #3300.
|