@@ -123,7 +123,7 @@ int wc_SHE_Init(wc_SHE* she, void* heap, int devId)
123123 ForceZero (she , sizeof (wc_SHE ));
124124 she -> heap = heap ;
125125 she -> devId = devId ;
126- /* kdfEncOverride/kdfMacOverride are zero from XMEMSET — defaults used */
126+ /* kdfEncOverride/kdfMacOverride are zero from XMEMSET -- defaults used */
127127
128128 return 0 ;
129129}
@@ -222,7 +222,7 @@ void wc_SHE_Free(wc_SHE* she)
222222}
223223
224224/* -------------------------------------------------------------------------- */
225- /* GetUID — callback required */
225+ /* GetUID -- callback required */
226226/* */
227227/* Dispatches to callback to fetch UID from hardware. */
228228/* Buffer size validation is the callback's responsibility. */
@@ -241,7 +241,7 @@ int wc_SHE_GetUID(wc_SHE* she, byte* uid, word32 uidSz,
241241#endif /* WOLF_CRYPTO_CB && !NO_WC_SHE_GETUID */
242242
243243/* -------------------------------------------------------------------------- */
244- /* GetCounter — callback required */
244+ /* GetCounter -- callback required */
245245/* */
246246/* Dispatches to callback to read current counter from hardware. */
247247/* Returns CRYPTOCB_UNAVAILABLE if no callback. */
@@ -425,13 +425,13 @@ int wc_SHE_GenerateM1M2M3(wc_SHE* she,
425425 WC_DECLARE_VAR (aes , Aes , 1 , 0 );
426426 WC_DECLARE_VAR (cmac , Cmac , 1 , 0 );
427427
428- /* Validate SHE context first — required for both callback and software */
428+ /* Validate SHE context first -- required for both callback and software */
429429 if (she == NULL ) {
430430 return BAD_FUNC_ARG ;
431431 }
432432
433433#ifdef WOLF_CRYPTO_CB
434- /* Try callback first — callback handles its own parameter validation.
434+ /* Try callback first -- callback handles its own parameter validation.
435435 * This allows callers to pass NULL authKey/newKey when a secure element
436436 * holds the keys and the callback talks to it directly. */
437437 if (she -> devId != INVALID_DEVID ) {
@@ -448,7 +448,7 @@ int wc_SHE_GenerateM1M2M3(wc_SHE* she,
448448 }
449449#endif
450450
451- /* Software path — validate all parameters */
451+ /* Software path -- validate all parameters */
452452 if (uid == NULL || uidSz != WC_SHE_UID_SZ ||
453453 authKey == NULL || authKeySz != WC_SHE_KEY_SZ ||
454454 newKey == NULL || newKeySz != WC_SHE_KEY_SZ ||
@@ -482,7 +482,7 @@ int wc_SHE_GenerateM1M2M3(wc_SHE* she,
482482 return MEMORY_E ;
483483 }
484484
485- /* Init AES once — used by both MP16 and CBC */
485+ /* Init AES once -- used by both MP16 and CBC */
486486 ret = wc_AesInit (aes , she -> heap , she -> devId );
487487 if (ret != 0 ) {
488488 WC_FREE_VAR (aes , she -> heap );
@@ -584,7 +584,7 @@ int wc_SHE_GenerateM4M5(wc_SHE* she,
584584 }
585585
586586#ifdef WOLF_CRYPTO_CB
587- /* Try callback first — useful for uploading M1/M2/M3 to an HSM which
587+ /* Try callback first -- useful for uploading M1/M2/M3 to an HSM which
588588 * loads the key and returns the correct M4/M5 proof values. The callback
589589 * handles its own parameter validation. */
590590 if (she -> devId != INVALID_DEVID ) {
@@ -599,7 +599,7 @@ int wc_SHE_GenerateM4M5(wc_SHE* she,
599599 }
600600#endif
601601
602- /* Software path — validate all parameters */
602+ /* Software path -- validate all parameters */
603603 if (uid == NULL || uidSz != WC_SHE_UID_SZ ||
604604 newKey == NULL || newKeySz != WC_SHE_KEY_SZ ||
605605 m4 == NULL || m4Sz < WC_SHE_M4_SZ ||
@@ -631,7 +631,7 @@ int wc_SHE_GenerateM4M5(wc_SHE* she,
631631 return MEMORY_E ;
632632 }
633633
634- /* Init AES once — used by both MP16 and ECB */
634+ /* Init AES once -- used by both MP16 and ECB */
635635 ret = wc_AesInit (aes , she -> heap , she -> devId );
636636 if (ret != 0 ) {
637637 WC_FREE_VAR (aes , she -> heap );
@@ -700,7 +700,7 @@ int wc_SHE_GenerateM4M5(wc_SHE* she,
700700/* -------------------------------------------------------------------------- */
701701#if defined(WOLF_CRYPTO_CB ) && !defined(NO_WC_SHE_EXPORTKEY )
702702/* -------------------------------------------------------------------------- */
703- /* Export Key — callback required */
703+ /* Export Key -- callback required */
704704/* */
705705/* Asks hardware to export a key slot as M1-M5 in SHE loadable format. */
706706/* -------------------------------------------------------------------------- */
0 commit comments