Remove dependencies on deprecated PSA crypto functionality
The attestation key manager and platform inspect application
were using some deprecated PSA Crypto API funcationality
related to use of the psa_key_handle_t type and psa_open_key
and psa_close_key. Also aligns Mbed TLS configuration for
Posix builds to changes in entropy related defines introduced
in Mbed TLS 3.0.0.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: Iba882c999470bf035f1d15d02ff90b43b63ac84e
diff --git a/components/app/platform-inspect/platform_inspect.cpp b/components/app/platform-inspect/platform_inspect.cpp
index fd0e05b..93c8f88 100644
--- a/components/app/platform-inspect/platform_inspect.cpp
+++ b/components/app/platform-inspect/platform_inspect.cpp
@@ -18,7 +18,14 @@
{
int rval = -1;
- psa_crypto_init();
+ psa_status_t psa_status = psa_crypto_init();
+
+ if (psa_status != PSA_SUCCESS) {
+
+ printf("psa_crypto_init failed: %d\n", psa_status);
+ return rval;
+ }
+
service_locator_init();
/* Fetch platform info */