blob: f4d82ae850b754ad47e06b664c81735bc3d6a414 [file] [log] [blame]
Antonio de Angelis75024f02024-11-02 22:46:23 +00001From a7e440e35d42f488adc94fa053dd54bac8c50397 Mon Sep 17 00:00:00 2001
Summer Qinac38f3f2023-11-09 14:34:47 +08002From: Summer Qin <summer.qin@arm.com>
3Date: Thu, 9 Nov 2023 14:28:04 +0800
Antonio de Angelis75024f02024-11-02 22:46:23 +00004Subject: [PATCH 4/5] Attest: Use designated initializers.
Summer Qinac38f3f2023-11-09 14:34:47 +08005
6Armclang 6.21 reports missing-field-initializers warning for missing
7designated initializers. This will be fixed in armclang 6.22.
8Currently, use designated initializers as workaround.
9
10Signed-off-by: Summer Qin <summer.qin@arm.com>
11---
12 .../tgt_dev_apis_tfm_an521/nspe/pal_attestation_config.h | 5 +++--
13 .../tgt_dev_apis_tfm_an524/nspe/pal_attestation_config.h | 5 +++--
14 .../tgt_dev_apis_tfm_an539/nspe/pal_attestation_config.h | 5 +++--
15 .../tgt_dev_apis_tfm_cs3x0/nspe/pal_attestation_config.h | 5 +++--
16 .../tgt_dev_apis_tfm_musca_a/nspe/pal_attestation_config.h | 5 +++--
17 .../tgt_dev_apis_tfm_musca_b1/nspe/pal_attestation_config.h | 5 +++--
18 .../tgt_dev_apis_tfm_musca_s1/nspe/pal_attestation_config.h | 5 +++--
19 .../tgt_dev_apis_tfm_nrf5340/nspe/pal_attestation_config.h | 5 +++--
20 .../tgt_dev_apis_tfm_nrf9160/nspe/pal_attestation_config.h | 5 +++--
21 .../tgt_dev_apis_tfm_psoc64/nspe/pal_attestation_config.h | 5 +++--
22 .../nspe/pal_attestation_config.h | 5 +++--
23 11 files changed, 33 insertions(+), 22 deletions(-)
24
25diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_an521/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_an521/nspe/pal_attestation_config.h
26index 6817b5f..15d6ce4 100644
27--- a/api-tests/platform/targets/tgt_dev_apis_tfm_an521/nspe/pal_attestation_config.h
28+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_an521/nspe/pal_attestation_config.h
29@@ -69,9 +69,10 @@ struct ecc_public_key_t {
30
31 static const struct ecc_public_key_t attest_public_key = {
32 /* Constant byte */
33- 0x04,
34+ .a = 0x04,
35 /* X-coordinate */
36- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
37+ .public_key = {
38+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
39 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
40 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
41 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
42diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_an524/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_an524/nspe/pal_attestation_config.h
43index 6817b5f..15d6ce4 100644
44--- a/api-tests/platform/targets/tgt_dev_apis_tfm_an524/nspe/pal_attestation_config.h
45+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_an524/nspe/pal_attestation_config.h
46@@ -69,9 +69,10 @@ struct ecc_public_key_t {
47
48 static const struct ecc_public_key_t attest_public_key = {
49 /* Constant byte */
50- 0x04,
51+ .a = 0x04,
52 /* X-coordinate */
53- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
54+ .public_key = {
55+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
56 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
57 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
58 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
59diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_an539/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_an539/nspe/pal_attestation_config.h
60index 6817b5f..15d6ce4 100644
61--- a/api-tests/platform/targets/tgt_dev_apis_tfm_an539/nspe/pal_attestation_config.h
62+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_an539/nspe/pal_attestation_config.h
63@@ -69,9 +69,10 @@ struct ecc_public_key_t {
64
65 static const struct ecc_public_key_t attest_public_key = {
66 /* Constant byte */
67- 0x04,
68+ .a = 0x04,
69 /* X-coordinate */
70- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
71+ .public_key = {
72+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
73 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
74 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
75 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
Gergely Korcsáka72fe442024-10-31 09:48:05 +000076diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_mps3/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_mps3/nspe/pal_attestation_config.h
Summer Qinac38f3f2023-11-09 14:34:47 +080077index 35a951b..84d8c6f 100644
Gergely Korcsáka72fe442024-10-31 09:48:05 +000078--- a/api-tests/platform/targets/tgt_dev_apis_tfm_mps3/nspe/pal_attestation_config.h
79+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_mps3/nspe/pal_attestation_config.h
80@@ -69,9 +69,10 @@ struct ecc_public_key_t {
81
82 static const struct ecc_public_key_t attest_public_key = {
83 /* Constant byte */
84- 0x04,
85+ .a = 0x04,
86 /* X-coordinate */
87- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
88+ .public_key = {
89+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
90 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
91 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
92 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
93diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_mps4/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_mps4/nspe/pal_attestation_config.h
94index 35a951b..84d8c6f 100644
95--- a/api-tests/platform/targets/tgt_dev_apis_tfm_mps4/nspe/pal_attestation_config.h
96+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_mps4/nspe/pal_attestation_config.h
Summer Qinac38f3f2023-11-09 14:34:47 +080097@@ -69,9 +69,10 @@ struct ecc_public_key_t {
98
99 static const struct ecc_public_key_t attest_public_key = {
100 /* Constant byte */
101- 0x04,
102+ .a = 0x04,
103 /* X-coordinate */
104- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
105+ .public_key = {
106+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
107 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
108 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
109 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
110diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/nspe/pal_attestation_config.h
111index 6817b5f..15d6ce4 100644
112--- a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/nspe/pal_attestation_config.h
113+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/nspe/pal_attestation_config.h
114@@ -69,9 +69,10 @@ struct ecc_public_key_t {
115
116 static const struct ecc_public_key_t attest_public_key = {
117 /* Constant byte */
118- 0x04,
119+ .a = 0x04,
120 /* X-coordinate */
121- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
122+ .public_key = {
123+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
124 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
125 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
126 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
127diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_b1/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_b1/nspe/pal_attestation_config.h
128index 6817b5f..15d6ce4 100644
129--- a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_b1/nspe/pal_attestation_config.h
130+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_b1/nspe/pal_attestation_config.h
131@@ -69,9 +69,10 @@ struct ecc_public_key_t {
132
133 static const struct ecc_public_key_t attest_public_key = {
134 /* Constant byte */
135- 0x04,
136+ .a = 0x04,
137 /* X-coordinate */
138- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
139+ .public_key = {
140+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
141 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
142 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
143 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
144diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_s1/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_s1/nspe/pal_attestation_config.h
145index 6817b5f..15d6ce4 100644
146--- a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_s1/nspe/pal_attestation_config.h
147+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_s1/nspe/pal_attestation_config.h
148@@ -69,9 +69,10 @@ struct ecc_public_key_t {
149
150 static const struct ecc_public_key_t attest_public_key = {
151 /* Constant byte */
152- 0x04,
153+ .a = 0x04,
154 /* X-coordinate */
155- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
156+ .public_key = {
157+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
158 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
159 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
160 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
161diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_nrf5340/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_nrf5340/nspe/pal_attestation_config.h
162index bdef6c5..c096740 100644
163--- a/api-tests/platform/targets/tgt_dev_apis_tfm_nrf5340/nspe/pal_attestation_config.h
164+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_nrf5340/nspe/pal_attestation_config.h
165@@ -71,9 +71,10 @@ struct ecc_public_key_t {
166
167 static const struct ecc_public_key_t attest_public_key = {
168 /* Constant byte */
169- 0x04,
170+ .a = 0x04,
171 /* X-coordinate */
172- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
173+ .public_key = {
174+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
175 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
176 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
177 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
178diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_nrf9160/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_nrf9160/nspe/pal_attestation_config.h
179index bdef6c5..c096740 100644
180--- a/api-tests/platform/targets/tgt_dev_apis_tfm_nrf9160/nspe/pal_attestation_config.h
181+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_nrf9160/nspe/pal_attestation_config.h
182@@ -71,9 +71,10 @@ struct ecc_public_key_t {
183
184 static const struct ecc_public_key_t attest_public_key = {
185 /* Constant byte */
186- 0x04,
187+ .a = 0x04,
188 /* X-coordinate */
189- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
190+ .public_key = {
191+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
192 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
193 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
194 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
195diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_psoc64/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_psoc64/nspe/pal_attestation_config.h
196index 624a134..ed27b39 100644
197--- a/api-tests/platform/targets/tgt_dev_apis_tfm_psoc64/nspe/pal_attestation_config.h
198+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_psoc64/nspe/pal_attestation_config.h
199@@ -69,9 +69,10 @@ struct ecc_public_key_t {
200
201 static const struct ecc_public_key_t attest_public_key = {
202 /* Constant byte */
203- 0x04,
204+ .a = 0x04,
205 /* X-coordinate */
206- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
207+ .public_key = {
208+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
209 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
210 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
211 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
212diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_stm32l562e_dk/nspe/pal_attestation_config.h b/api-tests/platform/targets/tgt_dev_apis_tfm_stm32l562e_dk/nspe/pal_attestation_config.h
213index 6817b5f..15d6ce4 100644
214--- a/api-tests/platform/targets/tgt_dev_apis_tfm_stm32l562e_dk/nspe/pal_attestation_config.h
215+++ b/api-tests/platform/targets/tgt_dev_apis_tfm_stm32l562e_dk/nspe/pal_attestation_config.h
216@@ -69,9 +69,10 @@ struct ecc_public_key_t {
217
218 static const struct ecc_public_key_t attest_public_key = {
219 /* Constant byte */
220- 0x04,
221+ .a = 0x04,
222 /* X-coordinate */
223- {0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
224+ .public_key = {
225+ 0x79, 0xEB, 0xA9, 0x0E, 0x8B, 0xF4, 0x50, 0xA6,
226 0x75, 0x15, 0x76, 0xAD, 0x45, 0x99, 0xB0, 0x7A,
227 0xDF, 0x93, 0x8D, 0xA3, 0xBB, 0x0B, 0xD1, 0x7D,
228 0x00, 0x36, 0xED, 0x49, 0xA2, 0xD0, 0xFC, 0x3F,
229--
Antonio de Angelis75024f02024-11-02 22:46:23 +00002302.47.0
Summer Qinac38f3f2023-11-09 14:34:47 +0800231