@@ -70,10 +70,10 @@ extern "C" {
70
70
#include " sl_wifi.h"
71
71
#include " sl_wifi_callback_framework.h"
72
72
#include " wfx_host_events.h"
73
- #if TINYCRYPT_PRIMITIVES
73
+ #if SL_MBEDTLS_USE_TINYCRYPT
74
+ #include " sl_si91x_constants.h"
74
75
#include " sl_si91x_trng.h"
75
- #define TRNGKEY_SIZE 4
76
- #endif // TINYCRYPT_PRIMITIVES
76
+ #endif // SL_MBEDTLS_USE_TINYCRYPT
77
77
}
78
78
79
79
WfxRsi_t wfx_rsi;
@@ -477,8 +477,8 @@ static sl_status_t wfx_rsi_init(void)
477
477
return status;
478
478
}
479
479
480
- #ifdef TINYCRYPT_PRIMITIVES
481
- const uint32_t trngKey[TRNGKEY_SIZE ] = { 0x16157E2B , 0xA6D2AE28 , 0x8815F7AB , 0x3C4FCF09 };
480
+ #ifdef SL_MBEDTLS_USE_TINYCRYPT
481
+ const uint32_t trngKey[TRNG_KEY_SIZE ] = { 0x16157E2B , 0xA6D2AE28 , 0x8815F7AB , 0x3C4FCF09 };
482
482
483
483
// To check the Entropy of TRNG and verify TRNG functioning.
484
484
status = sl_si91x_trng_entropy ();
@@ -489,13 +489,13 @@ static sl_status_t wfx_rsi_init(void)
489
489
}
490
490
491
491
// Initiate and program the key required for TRNG hardware engine
492
- status = sl_si91x_trng_program_key ((uint32_t *) trngKey, TRNGKEY_SIZE );
492
+ status = sl_si91x_trng_program_key ((uint32_t *) trngKey, TRNG_KEY_SIZE );
493
493
if (status != SL_STATUS_OK)
494
494
{
495
495
SILABS_LOG (" TRNG Key Programming Failed" );
496
496
return status;
497
497
}
498
- #endif // TINYCRYPT_PRIMITIVES
498
+ #endif // SL_MBEDTLS_USE_TINYCRYPT
499
499
500
500
wfx_rsi.events = xEventGroupCreateStatic (&rsiDriverEventGroup);
501
501
wfx_rsi.dev_state |= WFX_RSI_ST_DEV_READY;
0 commit comments