Skip to content

Commit c8d654d

Browse files
parmi93TofMassilia13320
authored andcommitted
[refactor][core - services - api - certificates] rename stse_Handler_t to stse_Handle_t
`stse_Handler_t` has been renamed to `stse_Handle_t` to better reflect its role as a resource/context holder rather than an event handler. The term "handle" aligns with common conventions (e.g., STM32 HAL) and avoids confusion with callback or event-handling functions. This change is purely semantic and does not affect functionality.
1 parent 6cff265 commit c8d654d

90 files changed

Lines changed: 417 additions & 417 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api/stse_aes.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "api/stse_aes.h"
2222

2323
stse_ReturnCode_t stse_aes_ecb_encrypt(
24-
stse_Handler_t *pSTSE,
24+
stse_Handle_t *pSTSE,
2525
PLAT_UI8 slot_number,
2626
PLAT_UI16 message_length,
2727
PLAT_UI8 *pPlaintext_message,
@@ -43,7 +43,7 @@ stse_ReturnCode_t stse_aes_ecb_encrypt(
4343
}
4444

4545
stse_ReturnCode_t stse_aes_ecb_decrypt(
46-
stse_Handler_t *pSTSE,
46+
stse_Handle_t *pSTSE,
4747
PLAT_UI8 slot_number,
4848
PLAT_UI16 message_length,
4949
PLAT_UI8 *pEncrypted_message,
@@ -65,7 +65,7 @@ stse_ReturnCode_t stse_aes_ecb_decrypt(
6565
}
6666

6767
stse_ReturnCode_t stse_aes_ccm_encrypt(
68-
stse_Handler_t *pSTSE,
68+
stse_Handle_t *pSTSE,
6969
PLAT_UI8 slot_number,
7070
PLAT_UI8 authentication_tag_length,
7171
PLAT_UI8 *pNonce,
@@ -96,7 +96,7 @@ stse_ReturnCode_t stse_aes_ccm_encrypt(
9696
}
9797

9898
stse_ReturnCode_t stse_aes_ccm_encrypt_start(
99-
stse_Handler_t *pSTSE,
99+
stse_Handle_t *pSTSE,
100100
PLAT_UI8 slot_number,
101101
PLAT_UI16 Nonce_length,
102102
PLAT_UI8 *pNonce,
@@ -134,7 +134,7 @@ stse_ReturnCode_t stse_aes_ccm_encrypt_start(
134134
}
135135

136136
stse_ReturnCode_t stse_aes_ccm_encrypt_process(
137-
stse_Handler_t *pSTSE,
137+
stse_Handle_t *pSTSE,
138138
PLAT_UI16 associated_data_chunk_length,
139139
PLAT_UI8 *pAssociated_data_chunk,
140140
PLAT_UI16 message_chunk_length,
@@ -158,7 +158,7 @@ stse_ReturnCode_t stse_aes_ccm_encrypt_process(
158158
}
159159

160160
stse_ReturnCode_t stse_aes_ccm_encrypt_finish(
161-
stse_Handler_t *pSTSE,
161+
stse_Handle_t *pSTSE,
162162
PLAT_UI8 authentication_tag_length,
163163
PLAT_UI16 associated_data_chunk_length,
164164
PLAT_UI8 *pAssociated_data_chunk,
@@ -186,7 +186,7 @@ stse_ReturnCode_t stse_aes_ccm_encrypt_finish(
186186
}
187187

188188
stse_ReturnCode_t stse_aes_ccm_decrypt(
189-
stse_Handler_t *pSTSE,
189+
stse_Handle_t *pSTSE,
190190
PLAT_UI8 slot_number,
191191
PLAT_UI8 authentication_tag_length,
192192
PLAT_UI8 *pNonce,
@@ -220,7 +220,7 @@ stse_ReturnCode_t stse_aes_ccm_decrypt(
220220
}
221221

222222
stse_ReturnCode_t stse_aes_gcm_encrypt(
223-
stse_Handler_t *pSTSE,
223+
stse_Handle_t *pSTSE,
224224
PLAT_UI8 slot_number,
225225
PLAT_UI8 authentication_tag_length,
226226
PLAT_UI16 IV_length,
@@ -254,7 +254,7 @@ stse_ReturnCode_t stse_aes_gcm_encrypt(
254254
}
255255

256256
stse_ReturnCode_t stse_aes_ccm_decrypt_start(
257-
stse_Handler_t *pSTSE,
257+
stse_Handle_t *pSTSE,
258258
PLAT_UI8 slot_number,
259259
PLAT_UI16 Nonce_length,
260260
PLAT_UI8 *pNonce,
@@ -288,7 +288,7 @@ stse_ReturnCode_t stse_aes_ccm_decrypt_start(
288288
}
289289

290290
stse_ReturnCode_t stse_aes_ccm_decrypt_process(
291-
stse_Handler_t *pSTSE,
291+
stse_Handle_t *pSTSE,
292292
PLAT_UI16 associated_data_chunk_length,
293293
PLAT_UI8 *pAssociated_data_chunk,
294294
PLAT_UI16 message_chunk_length,
@@ -312,7 +312,7 @@ stse_ReturnCode_t stse_aes_ccm_decrypt_process(
312312
}
313313

314314
stse_ReturnCode_t stse_aes_ccm_decrypt_finish(
315-
stse_Handler_t *pSTSE,
315+
stse_Handle_t *pSTSE,
316316
PLAT_UI8 authentication_tag_length,
317317
PLAT_UI16 associated_data_chunk_length,
318318
PLAT_UI8 *pAssociated_data_chunk,
@@ -342,7 +342,7 @@ stse_ReturnCode_t stse_aes_ccm_decrypt_finish(
342342
}
343343

344344
stse_ReturnCode_t stse_aes_gcm_encrypt_start(
345-
stse_Handler_t *pSTSE,
345+
stse_Handle_t *pSTSE,
346346
PLAT_UI8 slot_number,
347347
PLAT_UI16 IV_length,
348348
PLAT_UI8 *pIV,
@@ -372,7 +372,7 @@ stse_ReturnCode_t stse_aes_gcm_encrypt_start(
372372
}
373373

374374
stse_ReturnCode_t stse_aes_gcm_encrypt_process(
375-
stse_Handler_t *pSTSE,
375+
stse_Handle_t *pSTSE,
376376
PLAT_UI16 associated_data_chunk_length,
377377
PLAT_UI8 *pAssociated_data_chunk,
378378
PLAT_UI16 message_chunk_length,
@@ -396,7 +396,7 @@ stse_ReturnCode_t stse_aes_gcm_encrypt_process(
396396
}
397397

398398
stse_ReturnCode_t stse_aes_gcm_encrypt_finish(
399-
stse_Handler_t *pSTSE,
399+
stse_Handle_t *pSTSE,
400400
PLAT_UI8 authentication_tag_length,
401401
PLAT_UI16 associated_data_chunk_length,
402402
PLAT_UI8 *pAssociated_data_chunk,
@@ -424,7 +424,7 @@ stse_ReturnCode_t stse_aes_gcm_encrypt_finish(
424424
}
425425

426426
stse_ReturnCode_t stse_aes_gcm_decrypt(
427-
stse_Handler_t *pSTSE,
427+
stse_Handle_t *pSTSE,
428428
PLAT_UI8 slot_number,
429429
PLAT_UI8 authentication_tag_length,
430430
PLAT_UI16 IV_length,
@@ -460,7 +460,7 @@ stse_ReturnCode_t stse_aes_gcm_decrypt(
460460
}
461461

462462
stse_ReturnCode_t stse_aes_gcm_decrypt_start(
463-
stse_Handler_t *pSTSE,
463+
stse_Handle_t *pSTSE,
464464
PLAT_UI8 slot_number,
465465
PLAT_UI16 IV_length,
466466
PLAT_UI8 *pIV,
@@ -490,7 +490,7 @@ stse_ReturnCode_t stse_aes_gcm_decrypt_start(
490490
}
491491

492492
stse_ReturnCode_t stse_aes_gcm_decrypt_process(
493-
stse_Handler_t *pSTSE,
493+
stse_Handle_t *pSTSE,
494494
PLAT_UI16 associated_data_chunk_length,
495495
PLAT_UI8 *pAssociated_data_chunk,
496496
PLAT_UI16 message_chunk_length,
@@ -514,7 +514,7 @@ stse_ReturnCode_t stse_aes_gcm_decrypt_process(
514514
}
515515

516516
stse_ReturnCode_t stse_aes_gcm_decrypt_finish(
517-
stse_Handler_t *pSTSE,
517+
stse_Handle_t *pSTSE,
518518
PLAT_UI8 authentication_tag_length,
519519
PLAT_UI16 associated_data_chunk_length,
520520
PLAT_UI8 *pAssociated_data_chunk,

api/stse_aes.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* \details \include{doc} stse_aes_ecb_encrypt.dox
4444
*/
4545
stse_ReturnCode_t stse_aes_ecb_encrypt(
46-
stse_Handler_t *pSTSE,
46+
stse_Handle_t *pSTSE,
4747
PLAT_UI8 slot_number,
4848
PLAT_UI16 message_length,
4949
PLAT_UI8 *pPlaintext_message,
@@ -61,7 +61,7 @@ stse_ReturnCode_t stse_aes_ecb_encrypt(
6161
* \details \include{doc} stse_aes_ecb_decrypt.dox
6262
*/
6363
stse_ReturnCode_t stse_aes_ecb_decrypt(
64-
stse_Handler_t *pSTSE,
64+
stse_Handle_t *pSTSE,
6565
PLAT_UI8 slot_number,
6666
PLAT_UI16 message_length,
6767
PLAT_UI8 *pEncrypted_message,
@@ -86,7 +86,7 @@ stse_ReturnCode_t stse_aes_ecb_decrypt(
8686
* \details \include{doc} stse_aes_ccm_encrypt.dox
8787
*/
8888
stse_ReturnCode_t stse_aes_ccm_encrypt(
89-
stse_Handler_t *pSTSE,
89+
stse_Handle_t *pSTSE,
9090
PLAT_UI8 slot_number,
9191
PLAT_UI8 authentication_tag_length,
9292
PLAT_UI8 *pNonce,
@@ -118,7 +118,7 @@ stse_ReturnCode_t stse_aes_ccm_encrypt(
118118
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
119119
*/
120120
stse_ReturnCode_t stse_aes_ccm_encrypt_start(
121-
stse_Handler_t *pSTSE,
121+
stse_Handle_t *pSTSE,
122122
PLAT_UI8 slot_number,
123123
PLAT_UI16 Nonce_length,
124124
PLAT_UI8 *pNonce,
@@ -144,7 +144,7 @@ stse_ReturnCode_t stse_aes_ccm_encrypt_start(
144144
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
145145
*/
146146
stse_ReturnCode_t stse_aes_ccm_encrypt_process(
147-
stse_Handler_t *pSTSE,
147+
stse_Handle_t *pSTSE,
148148
PLAT_UI16 associated_data_chunk_length,
149149
PLAT_UI8 *pAssociated_data_chunk,
150150
PLAT_UI16 message_chunk_length,
@@ -165,7 +165,7 @@ stse_ReturnCode_t stse_aes_ccm_encrypt_process(
165165
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
166166
*/
167167
stse_ReturnCode_t stse_aes_ccm_encrypt_finish(
168-
stse_Handler_t *pSTSE,
168+
stse_Handle_t *pSTSE,
169169
PLAT_UI8 authentication_tag_length,
170170
PLAT_UI16 associated_data_chunk_length,
171171
PLAT_UI8 *pAssociated_data_chunk,
@@ -192,7 +192,7 @@ stse_ReturnCode_t stse_aes_ccm_encrypt_finish(
192192
* \details \include{doc} stse_aes_ccm_decrypt.dox
193193
*/
194194
stse_ReturnCode_t stse_aes_ccm_decrypt(
195-
stse_Handler_t *pSTSE,
195+
stse_Handle_t *pSTSE,
196196
PLAT_UI8 slot_number,
197197
PLAT_UI8 authentication_tag_length,
198198
PLAT_UI8 *pNonce,
@@ -221,7 +221,7 @@ stse_ReturnCode_t stse_aes_ccm_decrypt(
221221
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
222222
*/
223223
stse_ReturnCode_t stse_aes_ccm_decrypt_start(
224-
stse_Handler_t *pSTSE,
224+
stse_Handle_t *pSTSE,
225225
PLAT_UI8 slot_number,
226226
PLAT_UI16 Nonce_length,
227227
PLAT_UI8 *pNonce,
@@ -245,7 +245,7 @@ stse_ReturnCode_t stse_aes_ccm_decrypt_start(
245245
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
246246
*/
247247
stse_ReturnCode_t stse_aes_ccm_decrypt_process(
248-
stse_Handler_t *pSTSE,
248+
stse_Handle_t *pSTSE,
249249
PLAT_UI16 associated_data_chunk_length,
250250
PLAT_UI8 *pAssociated_data_chunk,
251251
PLAT_UI16 message_chunk_length,
@@ -267,7 +267,7 @@ stse_ReturnCode_t stse_aes_ccm_decrypt_process(
267267
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
268268
*/
269269
stse_ReturnCode_t stse_aes_ccm_decrypt_finish(
270-
stse_Handler_t *pSTSE,
270+
stse_Handle_t *pSTSE,
271271
PLAT_UI8 authentication_tag_length,
272272
PLAT_UI16 associated_data_chunk_length,
273273
PLAT_UI8 *pAssociated_data_chunk,
@@ -294,7 +294,7 @@ stse_ReturnCode_t stse_aes_ccm_decrypt_finish(
294294
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
295295
*/
296296
stse_ReturnCode_t stse_aes_gcm_encrypt(
297-
stse_Handler_t *pSTSE,
297+
stse_Handle_t *pSTSE,
298298
PLAT_UI8 slot_number,
299299
PLAT_UI8 authentication_tag_length,
300300
PLAT_UI16 IV_length,
@@ -321,7 +321,7 @@ stse_ReturnCode_t stse_aes_gcm_encrypt(
321321
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
322322
*/
323323
stse_ReturnCode_t stse_aes_gcm_encrypt_start(
324-
stse_Handler_t *pSTSE,
324+
stse_Handle_t *pSTSE,
325325
PLAT_UI8 slot_number,
326326
PLAT_UI16 IV_length,
327327
PLAT_UI8 *pIV,
@@ -343,7 +343,7 @@ stse_ReturnCode_t stse_aes_gcm_encrypt_start(
343343
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
344344
*/
345345
stse_ReturnCode_t stse_aes_gcm_encrypt_process(
346-
stse_Handler_t *pSTSE,
346+
stse_Handle_t *pSTSE,
347347
PLAT_UI16 associated_data_chunk_length,
348348
PLAT_UI8 *pAssociated_data_chunk,
349349
PLAT_UI16 message_chunk_length,
@@ -364,7 +364,7 @@ stse_ReturnCode_t stse_aes_gcm_encrypt_process(
364364
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
365365
*/
366366
stse_ReturnCode_t stse_aes_gcm_encrypt_finish(
367-
stse_Handler_t *pSTSE,
367+
stse_Handle_t *pSTSE,
368368
PLAT_UI8 authentication_tag_length,
369369
PLAT_UI16 associated_data_chunk_length,
370370
PLAT_UI8 *pAssociated_data_chunk,
@@ -391,7 +391,7 @@ stse_ReturnCode_t stse_aes_gcm_encrypt_finish(
391391
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
392392
*/
393393
stse_ReturnCode_t stse_aes_gcm_decrypt(
394-
stse_Handler_t *pSTSE,
394+
stse_Handle_t *pSTSE,
395395
PLAT_UI8 slot_number,
396396
PLAT_UI8 authentication_tag_length,
397397
PLAT_UI16 IV_length,
@@ -419,7 +419,7 @@ stse_ReturnCode_t stse_aes_gcm_decrypt(
419419
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
420420
*/
421421
stse_ReturnCode_t stse_aes_gcm_decrypt_start(
422-
stse_Handler_t *pSTSE,
422+
stse_Handle_t *pSTSE,
423423
PLAT_UI8 slot_number,
424424
PLAT_UI16 IV_length,
425425
PLAT_UI8 *pIV,
@@ -441,7 +441,7 @@ stse_ReturnCode_t stse_aes_gcm_decrypt_start(
441441
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
442442
*/
443443
stse_ReturnCode_t stse_aes_gcm_decrypt_process(
444-
stse_Handler_t *pSTSE,
444+
stse_Handle_t *pSTSE,
445445
PLAT_UI16 associated_data_chunk_length,
446446
PLAT_UI8 *pAssociated_data_chunk,
447447
PLAT_UI16 message_chunk_length,
@@ -463,7 +463,7 @@ stse_ReturnCode_t stse_aes_gcm_decrypt_process(
463463
* \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
464464
*/
465465
stse_ReturnCode_t stse_aes_gcm_decrypt_finish(
466-
stse_Handler_t *pSTSE,
466+
stse_Handle_t *pSTSE,
467467
PLAT_UI8 authentication_tag_length,
468468
PLAT_UI16 associated_data_chunk_length,
469469
PLAT_UI8 *pAssociated_data_chunk,

api/stse_asymmetric_keys_management.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "api/stse_asymmetric_keys_management.h"
2323

2424
stse_ReturnCode_t stse_get_ecc_key_slots_count(
25-
stse_Handler_t *pSTSE,
25+
stse_Handle_t *pSTSE,
2626
PLAT_UI8 *pPrivate_key_slot_count) {
2727
#ifdef STSE_CONF_STSAFE_A_SUPPORT
2828
stse_ReturnCode_t ret;
@@ -44,7 +44,7 @@ stse_ReturnCode_t stse_get_ecc_key_slots_count(
4444
}
4545

4646
stse_ReturnCode_t stse_get_ecc_key_table_info(
47-
stse_Handler_t *pSTSE,
47+
stse_Handle_t *pSTSE,
4848
PLAT_UI8 private_key_slot_count,
4949
PLAT_UI16 *pGlobal_usage_limit,
5050
stsafea_private_key_slot_information_t *private_key_table_info) {
@@ -68,7 +68,7 @@ stse_ReturnCode_t stse_get_ecc_key_table_info(
6868
}
6969

7070
stse_ReturnCode_t stse_get_ecc_key_slot_info(
71-
stse_Handler_t *pSTSE,
71+
stse_Handle_t *pSTSE,
7272
PLAT_UI8 private_key_slot_number,
7373
PLAT_UI16 *pGlobal_usage_limit,
7474
stsafea_private_key_slot_information_t *private_key_slot_info) {
@@ -114,7 +114,7 @@ stse_ReturnCode_t stse_get_ecc_key_slot_info(
114114
}
115115

116116
stse_ReturnCode_t stse_generate_ECDHE_key_pair(
117-
stse_Handler_t *pSTSE,
117+
stse_Handle_t *pSTSE,
118118
stse_ecc_key_type_t key_type,
119119
PLAT_UI8 *pPublic_key) {
120120
#ifdef STSE_CONF_STSAFE_A_SUPPORT
@@ -137,7 +137,7 @@ stse_ReturnCode_t stse_generate_ECDHE_key_pair(
137137
}
138138

139139
stse_ReturnCode_t stse_generate_ecc_key_pair(
140-
stse_Handler_t *pSTSE,
140+
stse_Handle_t *pSTSE,
141141
PLAT_UI8 slot_number,
142142
stse_ecc_key_type_t key_type,
143143
PLAT_UI16 usage_limit,
@@ -162,7 +162,7 @@ stse_ReturnCode_t stse_generate_ecc_key_pair(
162162
}
163163

164164
stse_ReturnCode_t stse_write_generic_ecc_public_key(
165-
stse_Handler_t *pSTSE,
165+
stse_Handle_t *pSTSE,
166166
PLAT_UI8 slot_number,
167167
stse_ecc_key_type_t key_type,
168168
PLAT_UI8 *pPublic_key) {
@@ -186,7 +186,7 @@ stse_ReturnCode_t stse_write_generic_ecc_public_key(
186186
}
187187

188188
stse_ReturnCode_t stse_sign_for_generic_public_key_slot(
189-
stse_Handler_t *pSTSE,
189+
stse_Handle_t *pSTSE,
190190
stse_ecc_key_type_t private_key_type,
191191
PLAT_UI8 *pPrivate_key,
192192
stse_hash_algorithm_t hash_algo,

0 commit comments

Comments
 (0)