Skip to content

Commit b23519d

Browse files
Vge0rgetomi-font
authored andcommitted
[nrf noup] partitions: crypto: Fix duplicate functions
The Oberon PSA core provides these two functions: psa_key_derivation_verify_key psa_key_derivation_verify_bytes TF-M is not aware of the Oberon PSA core and it seems that the core that they use doesn't provide these functions at all. So instead of the usual logic of prefixing the PSA core functions with the mbedcrypto__ prefix it skipped these. We cannot skip the prefixing because the Oberon PSA core implements these and thus we will get multiple definitions errors. Ref: NCSDK-33148 Signed-off-by: Georgios Vasilakis <[email protected]>
1 parent a26343e commit b23519d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

secure_fw/partitions/crypto/crypto_spe.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,9 @@
184184
PSA_FUNCTION_NAME(psa_pake_get_shared_key)
185185
#define psa_pake_abort \
186186
PSA_FUNCTION_NAME(psa_pake_abort)
187+
#define psa_key_derivation_verify_key \
188+
PSA_FUNCTION_NAME(psa_key_derivation_verify_key)
189+
#define psa_key_derivation_verify_bytes \
190+
PSA_FUNCTION_NAME(psa_key_derivation_verify_bytes)
187191

188192
#endif /* CRYPTO_SPE_H */

0 commit comments

Comments
 (0)