@@ -45,7 +45,7 @@ PlatformManagerImpl PlatformManagerImpl::sInstance{ sChipThreadStack };
45
45
46
46
static k_timer sOperationalHoursSavingTimer ;
47
47
48
- #if !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY )
48
+ #if !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ENTROPY_POLL_ZEPHYR )
49
49
static bool sChipStackEntropySourceAdded = false ;
50
50
static int app_entropy_source (void * data, unsigned char * output, size_t len, size_t * olen)
51
51
{
@@ -72,7 +72,7 @@ static int app_entropy_source(void * data, unsigned char * output, size_t len, s
72
72
73
73
return ret;
74
74
}
75
- #endif // !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY )
75
+ #endif // !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ENTROPY_POLL_ZEPHYR )
76
76
77
77
void PlatformManagerImpl::OperationalHoursSavingTimerEventHandler (k_timer * timer)
78
78
{
@@ -117,24 +117,24 @@ CHIP_ERROR PlatformManagerImpl::_InitChipStack(void)
117
117
{
118
118
CHIP_ERROR err;
119
119
120
- #if !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY )
120
+ #if !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ENTROPY_POLL_ZEPHYR )
121
121
// Minimum required from source before entropy is released ( with mbedtls_entropy_func() ) (in bytes)
122
122
const size_t kThreshold = 16 ;
123
- #endif // !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY )
123
+ #endif // !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ENTROPY_POLL_ZEPHYR )
124
124
125
125
// Initialize the configuration system.
126
126
err = Internal::ZephyrConfig::Init ();
127
127
SuccessOrExit (err);
128
128
129
- #if !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY )
129
+ #if !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ENTROPY_POLL_ZEPHYR )
130
130
if (!sChipStackEntropySourceAdded )
131
131
{
132
132
// Add entropy source based on Zephyr entropy driver
133
133
err = chip::Crypto::add_entropy_source (app_entropy_source, NULL , kThreshold );
134
134
SuccessOrExit (err);
135
135
sChipStackEntropySourceAdded = true ;
136
136
}
137
- #endif // !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ZEPHYR_ENTROPY )
137
+ #endif // !defined(CONFIG_NRF_SECURITY) && !defined(CONFIG_MBEDTLS_ENTROPY_POLL_ZEPHYR )
138
138
139
139
// Call _InitChipStack() on the generic implementation base class to finish the initialization process.
140
140
err = Internal::GenericPlatformManagerImpl_Zephyr<PlatformManagerImpl>::_InitChipStack ();
0 commit comments