Skip to content

Commit a446ee6

Browse files
author
itayzafrir
committed
Rename internal function destroy_hash_clone to clear_hash_clone
1 parent b26890e commit a446ee6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static inline void release_hash_clone(psa_spm_hash_clone_t *hash_clone)
8989
}
9090
}
9191

92-
static void destroy_hash_clone(void *source_operation)
92+
static void clear_hash_clone(void *source_operation)
9393
{
9494
for (size_t i = 0; i < MAX_CONCURRENT_HASH_CLONES; i++) {
9595
if (psa_spm_hash_clones[i].source_operation == source_operation) {
@@ -476,7 +476,7 @@ static void psa_hash_operation(void)
476476
}
477477

478478
if (status != PSA_SUCCESS) {
479-
destroy_hash_clone(msg.rhandle);
479+
clear_hash_clone(msg.rhandle);
480480
mbedtls_free(msg.rhandle);
481481
psa_set_rhandle(msg.handle, NULL);
482482
}
@@ -510,7 +510,7 @@ static void psa_hash_operation(void)
510510
psa_hash_abort(msg.rhandle);
511511
}
512512

513-
destroy_hash_clone(msg.rhandle);
513+
clear_hash_clone(msg.rhandle);
514514
mbedtls_free(msg.rhandle);
515515
psa_set_rhandle(msg.handle, NULL);
516516
break;
@@ -544,15 +544,15 @@ static void psa_hash_operation(void)
544544
psa_hash_abort(msg.rhandle);
545545
}
546546

547-
destroy_hash_clone(msg.rhandle);
547+
clear_hash_clone(msg.rhandle);
548548
mbedtls_free(msg.rhandle);
549549
psa_set_rhandle(msg.handle, NULL);
550550
break;
551551
}
552552

553553
case PSA_HASH_ABORT: {
554554
status = psa_hash_abort(msg.rhandle);
555-
destroy_hash_clone(msg.rhandle);
555+
clear_hash_clone(msg.rhandle);
556556
mbedtls_free(msg.rhandle);
557557
psa_set_rhandle(msg.handle, NULL);
558558
break;
@@ -600,7 +600,7 @@ static void psa_hash_operation(void)
600600
case PSA_IPC_DISCONNECT: {
601601
if (msg.rhandle != NULL) {
602602
psa_hash_abort(msg.rhandle);
603-
destroy_hash_clone(msg.rhandle);
603+
clear_hash_clone(msg.rhandle);
604604
mbedtls_free(msg.rhandle);
605605
}
606606

0 commit comments

Comments
 (0)