1 /*
2  * Copyright (c) 2022, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __TFM_BUILTIN_KEY_IDS_H__
9 #define __TFM_BUILTIN_KEY_IDS_H__
10 
11 /**
12  * \brief The PSA driver location for TF-M builtin keys. Arbitrary within the
13  * ranges documented at
14  * https://armmbed.github.io/mbed-crypto/html/api/keys/lifetimes.html#c.psa_key_location_t
15  */
16 #define TFM_BUILTIN_KEY_LOADER_KEY_LOCATION ((psa_key_location_t)0x800001)
17 
18 /**
19  * \brief The persistent key identifiers for TF-M builtin keys.
20  *
21  * The value of TFM_BUILTIN_KEY_ID_MIN (and therefore of the whole range) is
22  * completely arbitrary except for being inside the PSA builtin keys range.
23  *
24  */
25 enum tfm_builtin_key_id_t {
26     TFM_BUILTIN_KEY_ID_MIN = 0x7fff815Bu,
27     TFM_BUILTIN_KEY_ID_HUK,
28     TFM_BUILTIN_KEY_ID_IAK,
29 #ifdef TFM_PARTITION_DELEGATED_ATTESTATION
30     TFM_BUILTIN_KEY_ID_DAK_SEED,
31 #endif /* TFM_PARTITION_DELEGATED_ATTESTATION */
32     TFM_BUILTIN_KEY_ID_PLAT_SPECIFIC_MIN = 0x7FFF816Bu,
33     TFM_BUILTIN_KEY_ID_MAX = 0x7FFF817Bu,
34 };
35 
36 #endif /* __TFM_BUILTIN_KEY_IDS_H__ */
37