Skip to content

Commit 6e3d238

Browse files
author
Moran Peker
committed
Styling
1 parent 47f59b1 commit 6e3d238

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IPC/psa_attest_inject_key.c

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,14 @@ psa_attestation_inject_key(const uint8_t *key_data,
3333
{
3434
psa_handle_t handle = PSA_NULL_HANDLE;
3535
psa_status_t call_error = PSA_SUCCESS;
36-
psa_invec in_vec[2];
37-
psa_outvec out_vec[2];
38-
39-
in_vec[0] = (psa_invec) {
40-
&type,
41-
sizeof(type)
42-
};
43-
in_vec[1] = (psa_invec) {
44-
key_data, key_data_length
36+
psa_invec in_vec[2] = {
37+
{ &type, sizeof(type) },
38+
{ key_data, key_data_length }
4539
};
46-
out_vec[0] = (psa_outvec) {
47-
public_key_data, public_key_data_size
48-
};
49-
out_vec[1] = (psa_outvec) {
50-
public_key_data_length, sizeof(*public_key_data_length)
40+
41+
psa_outvec out_vec[2] = {
42+
{ public_key_data, public_key_data_size },
43+
{ public_key_data_length, sizeof(*public_key_data_length) }
5144
};
5245

5346
handle = psa_connect(PSA_ATTEST_INJECT_KEY_ID, MINOR_VER);

components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IPC/psa_initial_attestation_api.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ enum psa_attest_err_t
5757
psa_initial_attest_get_token_size(uint32_t challenge_size,
5858
uint32_t *token_size) {
5959
psa_status_t err_call;
60-
6160
psa_handle_t handle = PSA_NULL_HANDLE;
62-
6361
psa_invec in_vec[1] = { { &challenge_size, sizeof(uint32_t) } };
6462
psa_outvec out_vec[1] = { { token_size, sizeof(uint32_t) } };
6563

components/TARGET_PSA/services/attestation/COMPONENT_SPE/psa_attestation_partition.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ static void psa_attest_inject_key(void)
175175
size_t public_key_data_length = 0;
176176
uint8_t *key_data = NULL;
177177
psa_key_type_t type;
178-
179178
uint32_t bytes_read = 0;
180179

181180
if (msg.in_size[0] != sizeof(psa_key_type_t)) {

0 commit comments

Comments
 (0)