1/* 2 * Copyright (c) 2023, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8#include "provisioning_bundle.h" 9#include "psa/crypto.h" 10#include "config_tfm.h" 11 12/* This file is generated by the create_provisioning_data.py */ 13 14const struct provisioning_data_t data = { 15 .bl2_assembly_and_test_prov_data = { 16 /* bl2 rotpk 0 */ 17 { 18 {{bl2_rotpk_0 | indent(12)}} 19 }, 20 /* bl2 rotpk 1 */ 21 { 22 {{bl2_rotpk_1 | indent(12)}} 23 }, 24#if (MCUBOOT_IMAGE_NUMBER > 2) 25 /* bl2 rotpk 2 */ 26 { 27 {{bl2_rotpk_2 | indent(12)}} 28 }, 29#endif /* MCUBOOT_IMAGE_NUMBER > 2 */ 30#if (MCUBOOT_IMAGE_NUMBER > 3) 31 /* bl2 rotpk 3 */ 32 { 33 {{bl2_rotpk_3 | indent(12)}} 34 }, 35#endif /* MCUBOOT_IMAGE_NUMBER > 3 */ 36 }, 37#ifdef PLATFORM_PSA_ADAC_SECURE_DEBUG 38 { 39 {{secure_debug_pk | indent(12)}} 40 }, 41#endif /* PLATFORM_PSA_ADAC_SECURE_DEBUG */ 42 .assembly_and_test_prov_data = { 43 /* HUK */ 44 { 45 {{huk | indent(12)}} 46 }, 47 }, 48 .psa_rot_prov_data = { 49 /* IAK */ 50 { 51 {{iak | indent(12)}} 52 }, 53 /* IAK len */ 54 {{iak_len | indent(8)}}, 55#ifdef SYMMETRIC_INITIAL_ATTESTATION 56 /* IAK type */ 57 PSA_ALG_HMAC(PSA_ALG_SHA_256), 58#else 59 /* IAK type */ 60 PSA_ECC_FAMILY_SECP_R1, 61#endif /* SYMMETRIC_INITIAL_ATTESTATION */ 62#if ATTEST_INCLUDE_COSE_KEY_ID 63 /* IAK id */ 64 "kid@trustedfirmware.example", 65#endif /* ATTEST_INCLUDE_COSE_KEY_ID */ 66 /* boot seed */ 67 { 68 {{boot_seed | indent(12)}} 69 }, 70 /* implementation id */ 71 { 72 {{implementation_id | indent(12)}} 73 }, 74 /* certification reference */ 75 "{{certification_reference | indent(12)}}", 76 /* verification_service_url */ 77 "{{verification_service_url | indent(12)}}", 78 /* attestation_profile_definition */ 79 #if ATTEST_TOKEN_PROFILE_PSA_IOT_1 80 "PSA_IOT_PROFILE_1", 81#elif ATTEST_TOKEN_PROFILE_PSA_2_0_0 82 "http://arm.com/psa/2.0.0", 83#elif ATTEST_TOKEN_PROFILE_ARM_CCA 84 "http://arm.com/CCA-SSD/1.0.0", 85#else 86#ifdef TFM_PARTITION_INITIAL_ATTESTATION 87#error "Attestation token profile is incorrect" 88#else 89 "UNDEFINED", 90#endif /* TFM_PARTITION_INITIAL_ATTESTATION */ 91#endif 92 /* Entropy seed */ 93 { 94 {{entropy_seed | indent(12)}} 95 }, 96 } 97}; 98