@@ -89,7 +89,7 @@ static inline void release_hash_clone(psa_spm_hash_clone_t *hash_clone)
89
89
}
90
90
}
91
91
92
- static void destroy_hash_clone (void * source_operation )
92
+ static void clear_hash_clone (void * source_operation )
93
93
{
94
94
for (size_t i = 0 ; i < MAX_CONCURRENT_HASH_CLONES ; i ++ ) {
95
95
if (psa_spm_hash_clones [i ].source_operation == source_operation ) {
@@ -476,7 +476,7 @@ static void psa_hash_operation(void)
476
476
}
477
477
478
478
if (status != PSA_SUCCESS ) {
479
- destroy_hash_clone (msg .rhandle );
479
+ clear_hash_clone (msg .rhandle );
480
480
mbedtls_free (msg .rhandle );
481
481
psa_set_rhandle (msg .handle , NULL );
482
482
}
@@ -510,7 +510,7 @@ static void psa_hash_operation(void)
510
510
psa_hash_abort (msg .rhandle );
511
511
}
512
512
513
- destroy_hash_clone (msg .rhandle );
513
+ clear_hash_clone (msg .rhandle );
514
514
mbedtls_free (msg .rhandle );
515
515
psa_set_rhandle (msg .handle , NULL );
516
516
break ;
@@ -544,15 +544,15 @@ static void psa_hash_operation(void)
544
544
psa_hash_abort (msg .rhandle );
545
545
}
546
546
547
- destroy_hash_clone (msg .rhandle );
547
+ clear_hash_clone (msg .rhandle );
548
548
mbedtls_free (msg .rhandle );
549
549
psa_set_rhandle (msg .handle , NULL );
550
550
break ;
551
551
}
552
552
553
553
case PSA_HASH_ABORT : {
554
554
status = psa_hash_abort (msg .rhandle );
555
- destroy_hash_clone (msg .rhandle );
555
+ clear_hash_clone (msg .rhandle );
556
556
mbedtls_free (msg .rhandle );
557
557
psa_set_rhandle (msg .handle , NULL );
558
558
break ;
@@ -600,7 +600,7 @@ static void psa_hash_operation(void)
600
600
case PSA_IPC_DISCONNECT : {
601
601
if (msg .rhandle != NULL ) {
602
602
psa_hash_abort (msg .rhandle );
603
- destroy_hash_clone (msg .rhandle );
603
+ clear_hash_clone (msg .rhandle );
604
604
mbedtls_free (msg .rhandle );
605
605
}
606
606
0 commit comments