Skip to content

Commit 95ba37f

Browse files
committed
Adds changes for use of SL_MBEDTLS_USE_TINYCRYPT
1 parent ba2f2a7 commit 95ba37f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/platform/silabs/PlatformManagerImpl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
#include <platform/internal/GenericPlatformManagerImpl_FreeRTOS.ipp>
3232
#include <platform/silabs/DiagnosticDataProviderImpl.h>
3333

34-
#if defined(TINYCRYPT_PRIMITIVES)
34+
#if defined(SL_MBEDTLS_USE_TINYCRYPT)
3535
#include "tinycrypt/ecc.h"
36-
#endif // TINYCRYPT_PRIMITIVES
36+
#endif // SL_MBEDTLS_USE_TINYCRYPT
3737

3838
#if CHIP_SYSTEM_CONFIG_USE_LWIP
3939
#include <lwip/tcpip.h>

src/platform/silabs/PlatformManagerImpl.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class PlatformManagerImpl final : public PlatformManager, public Internal::Gener
4141
// the implementation methods provided by this class.
4242
friend PlatformManager;
4343

44-
#if defined(TINYCRYPT_PRIMITIVES)
44+
#if defined(SL_MBEDTLS_USE_TINYCRYPT)
4545
// Since the RNG callback will be called from multiple threads,
4646
// use this mutex to lock/unlock the call to Matter RNG API, which
4747
// uses some global variables.
@@ -51,7 +51,7 @@ class PlatformManagerImpl final : public PlatformManager, public Internal::Gener
5151
// It must be set before calling any sign operations,
5252
// which are used in both Matter and OT threads.
5353
static int uECC_RNG_Function(uint8_t * dest, unsigned int size);
54-
#endif
54+
#endif // SL_MBEDTLS_USE_TINYCRYPT
5555

5656
// Allow the generic implementation base class to call helper methods on
5757
// this class.

0 commit comments

Comments
 (0)