Skip to content

Commit

Permalink
[Silabs] [SiWx917] Added the platform chip_crypto to SiWx917 platform (
Browse files Browse the repository at this point in the history
…#25019)

* Added the platform chip_crypto to SiWx917 platform

* Restyled by gn

* removed chipcryptopal.h and modified Aes128KeyHandle which was missed

* Restyled by clang-format

* Restyled by gn

* result was added twice, removed one

---------

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
2 people authored and pull[bot] committed Jul 28, 2023
1 parent fd4850b commit 3904163
Show file tree
Hide file tree
Showing 3 changed files with 1,767 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/platform/silabs/SiWx917/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ if (chip_enable_openthread) {
import("//build_overrides/openthread.gni")
}

if (chip_crypto == "platform") {
import("//build_overrides/mbedtls.gni")
}
static_library("SiWx917") {
sources = [
"${silabs_platform_dir}/BLEManagerImpl.h",
Expand Down Expand Up @@ -67,6 +70,15 @@ static_library("SiWx917") {

public_deps = [ "${chip_root}/src/platform:platform_base" ]

# Add platform crypto implementation
if (chip_crypto == "platform") {
sources += [ "CHIPCryptoPALTinyCrypt.cpp" ]
public_deps += [
"${chip_root}/src/crypto",
"${mbedtls_root}:mbedtls",
]
}

if (chip_enable_wifi) {
sources += [
"${silabs_platform_dir}/ConnectivityManagerImpl_WIFI.cpp",
Expand Down
Loading

0 comments on commit 3904163

Please sign in to comment.