mirror of https://github.com/ARMmbed/mbed-os.git
Attestation: Add comments from temporary data
parent
e12f5eeaa7
commit
e60af99edb
|
@ -154,6 +154,7 @@ enum psa_attest_err_t attest_get_caller_client_id(int32_t *caller_id)
|
||||||
return PSA_ATTEST_ERR_SUCCESS;
|
return PSA_ATTEST_ERR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Boot seed data is part of bootloader status*/
|
||||||
enum tfm_plat_err_t tfm_plat_get_boot_seed(uint32_t size, uint8_t *buf)
|
enum tfm_plat_err_t tfm_plat_get_boot_seed(uint32_t size, uint8_t *buf)
|
||||||
{
|
{
|
||||||
return PSA_ATTEST_ERR_CLAIM_UNAVAILABLE;
|
return PSA_ATTEST_ERR_CLAIM_UNAVAILABLE;
|
||||||
|
@ -186,6 +187,7 @@ enum tfm_plat_err_t tfm_plat_get_instance_id(uint32_t *size, uint8_t *buf)
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* HW version data is part of bootloader status*/
|
||||||
enum tfm_plat_err_t tfm_plat_get_hw_version(uint32_t *size, uint8_t *buf)
|
enum tfm_plat_err_t tfm_plat_get_hw_version(uint32_t *size, uint8_t *buf)
|
||||||
{
|
{
|
||||||
return PSA_ATTEST_ERR_CLAIM_UNAVAILABLE;
|
return PSA_ATTEST_ERR_CLAIM_UNAVAILABLE;
|
||||||
|
@ -197,6 +199,12 @@ enum tfm_plat_err_t tfm_plat_get_implementation_id(uint32_t *size, uint8_t *buf)
|
||||||
return PSA_ATTEST_ERR_SUCCESS;
|
return PSA_ATTEST_ERR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Temporary Implementation of security lifecycle data: mandatory claim.
|
||||||
|
** tfm_attest_hal_get_security_lifecycle function should return
|
||||||
|
** 'PSA_ATTEST_ERR_CLAIM_UNAVAILABLE' if been called.
|
||||||
|
** Security lifecycle data is part of bootloader status data.
|
||||||
|
** Temp implementation of using psa_security_lifecycle_state */
|
||||||
|
|
||||||
enum tfm_security_lifecycle_t tfm_attest_hal_get_security_lifecycle(void)
|
enum tfm_security_lifecycle_t tfm_attest_hal_get_security_lifecycle(void)
|
||||||
{
|
{
|
||||||
return security_lifecycle_psa_to_tfm();
|
return security_lifecycle_psa_to_tfm();
|
||||||
|
|
|
@ -46,9 +46,9 @@ extern const uint8_t temp_ram_page_data[];
|
||||||
|
|
||||||
extern uint8_t impl_id_data[];
|
extern uint8_t impl_id_data[];
|
||||||
|
|
||||||
/* Example verification service URL for initial attestation token */
|
/* Example verification service URL for initial attestation token - temporary data*/
|
||||||
static const char verification_service_url[] = "www.mbed.com";
|
static const char verification_service_url[] = "www.mbed.com";
|
||||||
/* Example profile definition document for initial attestation token */
|
/* Example profile definition document for initial attestation token - temporary data*/
|
||||||
static const char attestation_profile_definition[] = "psa-attest.md";
|
static const char attestation_profile_definition[] = "psa-attest.md";
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue