Skip to content

Commit 5d448d7

Browse files
author
Oren Cohen
committed
Astyle
1 parent 20478ba commit 5d448d7

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC/crypto_struct_ipc.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct psa_hash_operation_s {
3535
static inline struct psa_hash_operation_s psa_hash_operation_init(void)
3636
{
3737
const struct psa_hash_operation_s v = PSA_HASH_OPERATION_INIT;
38-
return(v);
38+
return (v);
3939
}
4040

4141
struct psa_mac_operation_s {
@@ -46,7 +46,7 @@ struct psa_mac_operation_s {
4646
static inline struct psa_mac_operation_s psa_mac_operation_init(void)
4747
{
4848
const struct psa_mac_operation_s v = PSA_MAC_OPERATION_INIT;
49-
return(v);
49+
return (v);
5050
}
5151

5252
struct psa_cipher_operation_s {
@@ -57,7 +57,7 @@ struct psa_cipher_operation_s {
5757
static inline struct psa_cipher_operation_s psa_cipher_operation_init(void)
5858
{
5959
const struct psa_cipher_operation_s v = PSA_CIPHER_OPERATION_INIT;
60-
return(v);
60+
return (v);
6161
}
6262

6363
struct psa_crypto_generator_s {
@@ -80,7 +80,7 @@ struct psa_key_policy_s {
8080
static inline struct psa_key_policy_s psa_key_policy_init(void)
8181
{
8282
const struct psa_key_policy_s v = PSA_KEY_POLICY_INIT;
83-
return(v);
83+
return (v);
8484
}
8585

8686
#endif /* PSA_CRYPTO_STRUCT_H */

components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC/psa_crypto_spm.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,8 @@ psa_status_t psa_open_key(psa_key_lifetime_t lifetime,
806806
psa_key_mng_ipc.func = PSA_OPEN_KEY;
807807
psa_handle_t handle = PSA_NULL_HANDLE;
808808
psa_invec in_vec[2] = {
809-
{ &psa_key_mng_ipc, sizeof(psa_key_mng_ipc) },
810-
{ &id, sizeof(id) }
809+
{ &psa_key_mng_ipc, sizeof(psa_key_mng_ipc) },
810+
{ &id, sizeof(id) }
811811
};
812812
psa_outvec out_vec[1] = { {
813813
key_handle, sizeof(*key_handle)
@@ -816,14 +816,14 @@ psa_status_t psa_open_key(psa_key_lifetime_t lifetime,
816816

817817
handle = psa_connect(PSA_KEY_MNG_ID, MINOR_VER);
818818
if (handle <= 0) {
819-
return (PSA_ERROR_COMMUNICATION_FAILURE);
819+
return (PSA_ERROR_COMMUNICATION_FAILURE);
820820
}
821821

822822
err_call = psa_call(handle, in_vec, 2, out_vec, 1);
823823
psa_close(handle);
824824

825825
if (err_call < 0) {
826-
err_call = (psa_status_t) PSA_ERROR_COMMUNICATION_FAILURE;
826+
err_call = (psa_status_t) PSA_ERROR_COMMUNICATION_FAILURE;
827827
}
828828
return ((psa_status_t) err_call);
829829
}
@@ -836,19 +836,19 @@ psa_status_t psa_close_key(psa_key_handle_t key_handle)
836836
psa_key_mng_ipc.func = PSA_CLOSE_KEY;
837837
psa_handle_t handle = PSA_NULL_HANDLE;
838838
psa_invec in_vec[1] = {
839-
{ &psa_key_mng_ipc, sizeof(psa_key_mng_ipc) }
839+
{ &psa_key_mng_ipc, sizeof(psa_key_mng_ipc) }
840840
};
841841

842842
handle = psa_connect(PSA_KEY_MNG_ID, MINOR_VER);
843843
if (handle <= 0) {
844-
return (PSA_ERROR_COMMUNICATION_FAILURE);
844+
return (PSA_ERROR_COMMUNICATION_FAILURE);
845845
}
846846

847847
err_call = psa_call(handle, in_vec, 1, NULL, 0);
848848
psa_close(handle);
849849

850850
if (err_call < 0) {
851-
err_call = (psa_status_t) PSA_ERROR_COMMUNICATION_FAILURE;
851+
err_call = (psa_status_t) PSA_ERROR_COMMUNICATION_FAILURE;
852852
}
853853
return ((psa_status_t) err_call);
854854
}

components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_partition.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ static inline psa_status_t reserve_hash_clone(int32_t partition_id, void *source
3838
{
3939
for (*index = 0; *index < MAX_CONCURRENT_HASH_CLONES; (*index)++) {
4040
if (psa_spm_hash_clones[*index].partition_id == partition_id &&
41-
psa_spm_hash_clones[*index].source_operation == source_operation) {
41+
psa_spm_hash_clones[*index].source_operation == source_operation) {
4242
psa_spm_hash_clones[*index].ref_count++;
4343
return PSA_SUCCESS;
4444
}
4545
}
4646

4747
for (*index = 0; *index < MAX_CONCURRENT_HASH_CLONES; (*index)++) {
4848
if (psa_spm_hash_clones[*index].partition_id == 0 &&
49-
psa_spm_hash_clones[*index].source_operation == NULL) {
49+
psa_spm_hash_clones[*index].source_operation == NULL) {
5050
psa_spm_hash_clones[*index].partition_id = partition_id;
5151
psa_spm_hash_clones[*index].source_operation = source_operation;
5252
psa_spm_hash_clones[*index].ref_count++;
@@ -79,11 +79,11 @@ static void destroy_hash_clone(void *source_operation)
7979
}
8080

8181
static inline psa_status_t get_hash_clone(size_t index, int32_t partition_id,
82-
psa_spm_hash_clone_t **hash_clone)
82+
psa_spm_hash_clone_t **hash_clone)
8383
{
8484
if (index >= MAX_CONCURRENT_HASH_CLONES ||
85-
psa_spm_hash_clones[index].partition_id != partition_id ||
86-
psa_spm_hash_clones[index].source_operation == NULL) {
85+
psa_spm_hash_clones[index].partition_id != partition_id ||
86+
psa_spm_hash_clones[index].source_operation == NULL) {
8787
return PSA_ERROR_BAD_STATE;
8888
}
8989

0 commit comments

Comments
 (0)