SST: First public draft of PSA SST APIs
This patch releases the first public draft of Platform Security
Architecture (PSA) Secure Storage (SST) APIs.
The APIs are defined in psa_sst_api.h.
More information can be found in tfm_sst_integration_guide.md
The patch also accomodates the SST implementation and tests
accordingly.
Change-Id: Ibe537939f9692a86816fa0c7b2a8d070a502fd2c
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
diff --git a/test/framework/helpers.c b/test/framework/helpers.c
index 5ae14fa..be2d188 100755
--- a/test/framework/helpers.c
+++ b/test/framework/helpers.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, Arm Limited. All rights reserved.
+ * Copyright (c) 2017-2018, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -9,23 +9,23 @@
#include <stdio.h>
-const char *sst_err_to_str(enum tfm_sst_err_t err)
+const char *sst_err_to_str(enum psa_sst_err_t err)
{
switch (err) {
- case TFM_SST_ERR_SUCCESS:
- return "TFM_SST_ERR_SUCCESS";
- case TFM_SST_ERR_ASSET_NOT_PREPARED:
- return "TFM_SST_ERR_ASSET_NOT_PREPARED";
- case TFM_SST_ERR_ASSET_NOT_FOUND:
- return "TFM_SST_ERR_ASSET_NOT_FOUND";
- case TFM_SST_ERR_PARAM_ERROR:
- return "TFM_SST_ERR_PARAM_ERROR";
- case TFM_SST_ERR_STORAGE_SYSTEM_FULL:
- return "TFM_SST_ERR_STORAGE_SYSTEM_FULL";
- case TFM_SST_ERR_SYSTEM_ERROR:
- return "TFM_SST_ERR_SYSTEM_ERROR";
- case TFM_SST_ERR_FORCE_INT_SIZE:
- return "TFM_SST_ERR_FORCE_INT_SIZE";
+ case PSA_SST_ERR_SUCCESS:
+ return "PSA_SST_ERR_SUCCESS";
+ case PSA_SST_ERR_ASSET_NOT_PREPARED:
+ return "PSA_SST_ERR_ASSET_NOT_PREPARED";
+ case PSA_SST_ERR_ASSET_NOT_FOUND:
+ return "PSA_SST_ERR_ASSET_NOT_FOUND";
+ case PSA_SST_ERR_PARAM_ERROR:
+ return "PSA_SST_ERR_PARAM_ERROR";
+ case PSA_SST_ERR_STORAGE_SYSTEM_FULL:
+ return "PSA_SST_ERR_STORAGE_SYSTEM_FULL";
+ case PSA_SST_ERR_SYSTEM_ERROR:
+ return "PSA_SST_ERR_SYSTEM_ERROR";
+ case PSA_SST_ERR_FORCE_INT_SIZE:
+ return "PSA_SST_ERR_FORCE_INT_SIZE";
/* default: The default is not defined intentionally to force the
* compiler to check that all the enumeration values are
* covered in the switch.