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