Skip to content

Commit 25fa5a6

Browse files
author
Moran Peker
committed
Remove TEMP_IMPL_ID_DATA and TEMP_IMPL_ID_DATA_SIZE
remove from public header into attestation_bootloader_data.c and add const to impl_id_data
1 parent 2cccfa1 commit 25fa5a6

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/attestation_bootloader_data.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,14 @@ const uint8_t temp_ram_page_data[] = {
4646
0x31, 0x32
4747
};
4848

49-
uint8_t impl_id_data[TEMP_IMPL_ID_DATA_SIZE] = {TEMP_IMPL_ID_DATA};
49+
/* Temporary Implementation ID data: mandatory claim represents the original
50+
** implementation signer of the attestation key and identifies the contract
51+
** between the report and verification */
52+
#define TEMP_IMPL_ID_DATA_SIZE (32u)
53+
54+
#define TEMP_IMPL_ID_DATA 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, \
55+
0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, \
56+
0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, \
57+
0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF
58+
59+
const uint8_t impl_id_data[TEMP_IMPL_ID_DATA_SIZE] = {TEMP_IMPL_ID_DATA};

components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/attestation_bootloader_data.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,7 @@ extern const uint8_t temp_ram_page_data[];
3434

3535
#define BOOT_TFM_SHARED_DATA_BASE S_RAM_ALIAS_BASE
3636

37-
/* Temporary Implementation ID data: mandatory claim represents the original
38-
** implementation signer of the attestation key and identifies the contract
39-
** between the report and verification */
40-
#define TEMP_IMPL_ID_DATA_SIZE (32u)
41-
42-
#define TEMP_IMPL_ID_DATA 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, \
43-
0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, \
44-
0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, \
45-
0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF
46-
47-
extern uint8_t impl_id_data[];
37+
extern const uint8_t impl_id_data[];
4838

4939
/* Example verification service URL for initial attestation token - temporary data*/
5040
static const char verification_service_url[] = "www.mbed.com";

0 commit comments

Comments
 (0)