@@ -244,7 +244,7 @@ int Tropic01_CryptoCb(int devId, wc_CryptoInfo* info, void* ctx)
244244 WOLFSSL_MSG_EX (
245245 "TROPIC01: CryptoCB: Failed to get ED25519 PRIVkey,ret=%d" ,
246246 ret );
247- ForceZero (info -> pk .ed25519sign .key -> k , ED25519_PRV_KEY_SIZE );
247+ wc_ForceZero (info -> pk .ed25519sign .key -> k , ED25519_PRV_KEY_SIZE );
248248 return ret ;
249249 }
250250 ret = Tropic01_GetKeyECC (
@@ -255,7 +255,7 @@ int Tropic01_CryptoCb(int devId, wc_CryptoInfo* info, void* ctx)
255255 WOLFSSL_MSG_EX (
256256 "TROPIC01: CryptoCB: Failed to get ED25519 PUBkey,ret=%d" ,
257257 ret );
258- ForceZero (info -> pk .ed25519sign .key -> k , ED25519_PRV_KEY_SIZE );
258+ wc_ForceZero (info -> pk .ed25519sign .key -> k , ED25519_PRV_KEY_SIZE );
259259 return ret ;
260260 }
261261 /* set devId to invalid, so software is used */
@@ -266,7 +266,7 @@ int Tropic01_CryptoCb(int devId, wc_CryptoInfo* info, void* ctx)
266266 info -> pk .ed25519sign .in , info -> pk .ed25519sign .inLen ,
267267 info -> pk .ed25519sign .out , info -> pk .ed25519sign .outLen ,
268268 info -> pk .ed25519sign .key );
269- ForceZero (info -> pk .ed25519sign .key -> k , ED25519_PRV_KEY_SIZE );
269+ wc_ForceZero (info -> pk .ed25519sign .key -> k , ED25519_PRV_KEY_SIZE );
270270
271271 /* reset devId */
272272 info -> pk .ed25519sign .key -> devId = devId ;
@@ -315,7 +315,7 @@ int Tropic01_CryptoCb(int devId, wc_CryptoInfo* info, void* ctx)
315315 WOLFSSL_MSG_EX (
316316 "TROPIC01: CryptoCB: Failed to get AES key,ret=%d" ,
317317 ret );
318- ForceZero (lt_key , sizeof (lt_key ));
318+ wc_ForceZero (lt_key , sizeof (lt_key ));
319319 return ret ;
320320 }
321321 ret = Tropic01_GetKeyAES (
@@ -326,15 +326,15 @@ int Tropic01_CryptoCb(int devId, wc_CryptoInfo* info, void* ctx)
326326 WOLFSSL_MSG_EX (
327327 "TROPIC01: CryptoCB: Failed to get AES IV, ret=%d" ,
328328 ret );
329- ForceZero (lt_key , sizeof (lt_key ));
330- ForceZero (lt_iv , sizeof (lt_iv ));
329+ wc_ForceZero (lt_key , sizeof (lt_key ));
330+ wc_ForceZero (lt_iv , sizeof (lt_iv ));
331331 return ret ;
332332 }
333333 if (info -> cipher .enc ) {
334334 ret = wc_AesSetKey (info -> cipher .aesgcm_enc .aes , lt_key ,
335335 WC_AES_BLOCK_SIZE , lt_iv , AES_ENCRYPTION );
336- ForceZero (lt_key , sizeof (lt_key ));
337- ForceZero (lt_iv , sizeof (lt_iv ));
336+ wc_ForceZero (lt_key , sizeof (lt_key ));
337+ wc_ForceZero (lt_iv , sizeof (lt_iv ));
338338 if (ret != 0 ) {
339339 WOLFSSL_MSG_EX (
340340 "TROPIC01: CryptoCB: Failed to set AES key, ret=%d" ,
@@ -361,8 +361,8 @@ int Tropic01_CryptoCb(int devId, wc_CryptoInfo* info, void* ctx)
361361 else {
362362 ret = wc_AesSetKey (info -> cipher .aesgcm_dec .aes , lt_key ,
363363 WC_AES_BLOCK_SIZE , lt_iv , AES_DECRYPTION );
364- ForceZero (lt_key , sizeof (lt_key ));
365- ForceZero (lt_iv , sizeof (lt_iv ));
364+ wc_ForceZero (lt_key , sizeof (lt_key ));
365+ wc_ForceZero (lt_iv , sizeof (lt_iv ));
366366 if (ret != 0 ) {
367367 WOLFSSL_MSG_EX (
368368 "TROPIC01: CryptoCB: Failed to set AES key, ret=%d" ,
@@ -397,7 +397,7 @@ int Tropic01_CryptoCb(int devId, wc_CryptoInfo* info, void* ctx)
397397 if (ret != 0 ) {
398398 WOLFSSL_MSG_EX (
399399 "TROPIC01: CryptoCB: Failed to get AES key,ret=%d" , ret );
400- ForceZero (lt_key , sizeof (lt_key ));
400+ wc_ForceZero (lt_key , sizeof (lt_key ));
401401 return ret ;
402402 }
403403 ret = Tropic01_GetKeyAES (
@@ -407,15 +407,15 @@ int Tropic01_CryptoCb(int devId, wc_CryptoInfo* info, void* ctx)
407407 if (ret != 0 ) {
408408 WOLFSSL_MSG_EX (
409409 "TROPIC01: CryptoCB: Failed to get AES IV, ret=%d" , ret );
410- ForceZero (lt_key , sizeof (lt_key ));
411- ForceZero (lt_iv , sizeof (lt_iv ));
410+ wc_ForceZero (lt_key , sizeof (lt_key ));
411+ wc_ForceZero (lt_iv , sizeof (lt_iv ));
412412 return ret ;
413413 }
414414 if (info -> cipher .enc ) {
415415 ret = wc_AesSetKey (info -> cipher .aescbc .aes , lt_key ,
416416 WC_AES_BLOCK_SIZE , lt_iv , AES_ENCRYPTION );
417- ForceZero (lt_key , sizeof (lt_key ));
418- ForceZero (lt_iv , sizeof (lt_iv ));
417+ wc_ForceZero (lt_key , sizeof (lt_key ));
418+ wc_ForceZero (lt_iv , sizeof (lt_iv ));
419419 if (ret != 0 ) {
420420 WOLFSSL_MSG_EX (
421421 "TROPIC01: CryptoCB: Failed to set AES key, ret=%d" ,
@@ -437,8 +437,8 @@ int Tropic01_CryptoCb(int devId, wc_CryptoInfo* info, void* ctx)
437437
438438 ret = wc_AesSetKey (info -> cipher .aescbc .aes , lt_key ,
439439 WC_AES_BLOCK_SIZE , lt_iv , AES_DECRYPTION );
440- ForceZero (lt_key , sizeof (lt_key ));
441- ForceZero (lt_iv , sizeof (lt_iv ));
440+ wc_ForceZero (lt_key , sizeof (lt_key ));
441+ wc_ForceZero (lt_iv , sizeof (lt_iv ));
442442 if (ret != 0 ) {
443443 WOLFSSL_MSG_EX (
444444 "TROPIC01: CryptoCB: Failed to set AES key, ret=%d" ,
0 commit comments