Tamas Ban | a00f285 | 2019-01-23 21:46:29 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #include "platform/include/tfm_attest_hal.h" |
Tamas Ban | d09c38f | 2019-01-23 22:04:50 +0000 | [diff] [blame] | 9 | #include <stdint.h> |
| 10 | |
| 11 | /* Example verification service URL for initial attestation token */ |
| 12 | static const char verification_service_url[] = "www.trustedfirmware.org"; |
| 13 | |
| 14 | /* Example profile definition document for initial attestation token */ |
Tamas Ban | 12df1af | 2019-03-01 12:43:12 +0000 | [diff] [blame] | 15 | static const char attestation_profile_definition[] = "PSA_IOT_PROFILE_1"; |
Tamas Ban | a00f285 | 2019-01-23 21:46:29 +0000 | [diff] [blame] | 16 | |
| 17 | enum tfm_security_lifecycle_t tfm_attest_hal_get_security_lifecycle(void) |
| 18 | { |
| 19 | return TFM_SLC_SECURED; |
| 20 | } |
Tamas Ban | d09c38f | 2019-01-23 22:04:50 +0000 | [diff] [blame] | 21 | |
| 22 | const char * |
| 23 | tfm_attest_hal_get_verification_service(uint32_t *size) |
| 24 | { |
| 25 | *size = sizeof(verification_service_url) - 1; |
| 26 | |
| 27 | return verification_service_url; |
| 28 | } |
| 29 | |
| 30 | const char * |
| 31 | tfm_attest_hal_get_profile_definition(uint32_t *size) |
| 32 | { |
| 33 | *size = sizeof(attestation_profile_definition) - 1; |
| 34 | |
| 35 | return attestation_profile_definition; |
| 36 | } |