Attest: Make return values independent from TF-M
Change-Id: Iccd5a7f35edb528774a321f211c2d451969f90dd
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
diff --git a/interface/include/psa_initial_attestation_api.h b/interface/include/psa_initial_attestation_api.h
index f4c9599..5d650f0 100644
--- a/interface/include/psa_initial_attestation_api.h
+++ b/interface/include/psa_initial_attestation_api.h
@@ -15,8 +15,8 @@
#ifndef __PSA_INITIAL_ATTESTATION_API_H__
#define __PSA_INITIAL_ATTESTATION_API_H__
-#include "tfm_api.h"
#include <limits.h>
+#include <stdint.h>
#ifdef __cplusplus
extern "C" {
@@ -28,11 +28,6 @@
#define PSA_INITIAL_ATTEST_API_VERSION_MAJOR (0)
#define PSA_INITIAL_ATTEST_API_VERSION_MINOR (1)
-/* The return value is shared with the TFM partition status value. The ATTEST
- * return codes shouldn't overlap with predefined TFM status values.
- */
-#define PSA_ATTEST_ERR_OFFSET (TFM_PARTITION_SPECIFIC_ERROR_MIN)
-
/**
* \enum psa_attest_err_t
*
@@ -43,7 +38,7 @@
/** Action was performed successfully */
PSA_ATTEST_ERR_SUCCESS = 0,
/** Boot status data is unavailable or malformed */
- PSA_ATTEST_ERR_INIT_FAILED = PSA_ATTEST_ERR_OFFSET,
+ PSA_ATTEST_ERR_INIT_FAILED,
/** Token buffer is too small to store the created token there */
PSA_ATTEST_ERR_TOKEN_BUFFER_OVERFLOW,
/** Some of the mandatory claims are unavailable*/