blob: f22162e8155c623584f9f6504c9a92009b64a2d7 [file] [log] [blame]
Tamas Bana00f2852019-01-23 21:46:29 +00001/*
2 * Copyright (c) 2019, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef __TFM_ATTEST_HAL_H__
9#define __TFM_ATTEST_HAL_H__
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/**
16 * \brief Security lifecycle of the device
17 */
18enum tfm_security_lifecycle_t {
19 TFM_SLC_UNKNOWN = 0x0000u,
20 TFM_SLC_ASSEMBLY_AND_TEST = 0x1000u,
21 TFM_SLC_PSA_ROT_PROVISIONING = 0x2000u,
22 TFM_SLC_SECURED = 0x3000u,
23 TFM_SLC_NON_PSA_ROT_DEBUG = 0x4000u,
24 TFM_SLC_RECOVERABLE_PSA_ROT_DEBUG = 0x5000u,
25 TFM_SLC_DECOMMISSIONED = 0x6000u,
26};
27
28/**
29 * \brief Retrieve the security lifecycle of the device
30 *
31 * Security lifecycle is a mandatory claim in the initial attestation token.
32 *
33 * \return According to \ref tfm_security_lifecycle_t
34 */
35enum tfm_security_lifecycle_t tfm_attest_hal_get_security_lifecycle(void);
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif /* __TFM_ATTEST_HAL_H__ */