Skip to content

Commit

Permalink
Adds changes for use of SL_MBEDTLS_USE_TINYCRYPT
Browse files Browse the repository at this point in the history
  • Loading branch information
brosahay authored and rosahay-silabs committed Jun 26, 2024
1 parent 554b3d4 commit abe5dbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/platform/silabs/PlatformManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
#include <platform/internal/GenericPlatformManagerImpl_FreeRTOS.ipp>
#include <platform/silabs/DiagnosticDataProviderImpl.h>

#if defined(TINYCRYPT_PRIMITIVES)
#if defined(SL_MBEDTLS_USE_TINYCRYPT)
#include "tinycrypt/ecc.h"
#endif // TINYCRYPT_PRIMITIVES
#endif // SL_MBEDTLS_USE_TINYCRYPT

#if CHIP_SYSTEM_CONFIG_USE_LWIP
#include <lwip/tcpip.h>
Expand Down
4 changes: 2 additions & 2 deletions src/platform/silabs/PlatformManagerImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PlatformManagerImpl final : public PlatformManager, public Internal::Gener
// the implementation methods provided by this class.
friend PlatformManager;

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

// Allow the generic implementation base class to call helper methods on
// this class.
Expand Down

0 comments on commit abe5dbe

Please sign in to comment.