Skip to content

Commit 5804ba1

Browse files
committed
Revert "Support for Hardware Secure Module (HSM) using Infineon OPTIGA Trust M (project-chip#32771) (project-chip#32905)"
This reverts commit 15b6bdd. Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent 524065a commit 5804ba1

33 files changed

+9
-4689
lines changed

.github/.wordlist.txt

-5
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,6 @@ HomePods
643643
hostapd
644644
hostname
645645
href
646-
HSM
647-
hsm
648646
HTTPS
649647
HW
650648
hwadr
@@ -966,7 +964,6 @@ objcopy
966964
OccupancySensing
967965
OctetString
968966
OECORE
969-
OID
970967
ol
971968
Onboarding
972969
onboardingcodes
@@ -988,7 +985,6 @@ openweave
988985
OperationalCredentials
989986
operationalDataset
990987
opkg
991-
OPTIGA
992988
optionMask
993989
optionOverride
994990
optionsMask
@@ -1432,7 +1428,6 @@ transitionTime
14321428
TransportMgrBase
14331429
TriggerEffect
14341430
TRNG
1435-
trustm
14361431
TrustedRootCertificates
14371432
tsan
14381433
TSG

.gitmodules

-6
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,3 @@
324324
path = third_party/infineon/psoc6/psoc6_sdk/libs/lwip-network-interface-integration
325325
url = https://github.com/Infineon/lwip-network-interface-integration.git
326326
platforms = infineon
327-
[submodule "third_party/infineon/trustm/optiga-trust-m"]
328-
path = third_party/infineon/trustm/optiga-trust-m
329-
url = https://github.com/Infineon/optiga-trust-m.git
330-
branch = matter_support
331-
platforms = infineon
332-

docs/guides/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
- [ASR - Getting Started Guide](./asr_getting_started_guide.md)
88
- [Espressif (ESP32) - Getting Started Guide](./esp32/README.md)
99
- [Infineon PSoC6 - Software Update](./infineon_psoc6_software_update.md)
10-
- [Infineon Trust M Provisioning](./infineon_trustm_provisioning.md)
1110
- [Linux - Simulated Devices](./simulated_device_linux.md)
1211
- [mbedOS - Adding a new target](./mbedos_add_new_target.md)
1312
- [mbedOS - Commissioning](./mbedos_commissioning.md)

docs/guides/infineon_trustm_provisioning.md

-61
This file was deleted.

examples/lock-app/infineon/psoc6/BUILD.gn

+1-16
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@
1515
import("//build_overrides/build.gni")
1616
import("//build_overrides/chip.gni")
1717
import("//build_overrides/psoc6.gni")
18+
1819
import("${build_root}/config/defaults.gni")
19-
import("${chip_root}/src/crypto/crypto.gni")
20-
import("${chip_root}/src/platform/Infineon/crypto/infineon_crypto.gni")
2120
import("${chip_root}/src/platform/device.gni")
22-
import("${chip_root}/third_party/infineon/trustm/trustm_config.gni")
2321
import("${psoc6_sdk_build_root}/psoc6_executable.gni")
2422
import("${psoc6_sdk_build_root}/psoc6_sdk.gni")
2523

@@ -119,19 +117,6 @@ psoc6_executable("lock_app") {
119117
"${psoc6_project_dir}/include",
120118
]
121119

122-
if (chip_crypto == "platform") {
123-
include_dirs += [ "${chip_root}/third_party/infineon/trustm" ]
124-
include_dirs += [ "${chip_root}/examples/platform/infineon/trustm" ]
125-
include_dirs += [ "${chip_root}/src/platform/Infineon/crypto/trustm" ]
126-
127-
defines = [ "ENABLE_DEVICE_ATTESTATION=1" ]
128-
129-
public_deps += [
130-
"${chip_root}/src/platform/Infineon/crypto/${infineon_crypto_impl}:infineon_crypto_lib",
131-
"${chip_root}/third_party/infineon/trustm:optiga-trust-m",
132-
]
133-
}
134-
135120
sources = [
136121
"${examples_plat_dir}/LEDWidget.cpp",
137122
"${examples_plat_dir}/init_psoc6Platform.cpp",

examples/lock-app/infineon/psoc6/README.md

+1-48
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ An example showing the use of Matter on the Infineon CY8CKIT-062S2-43012 board.
1414
- [Notes](#notes)
1515
- [Cluster control](#cluster-control)
1616
- [Factory Reset](#factory-reset)
17-
- [Building with Optiga Trust M as HSM](#building-with-optiga-trust-m-as-hsm)
18-
- [Optiga Trust M Provisioning](#optiga-trust-m-provisioning)
1917
- [OTA Software Update](#ota-software-update)
2018

2119
<hr>
@@ -57,11 +55,6 @@ will then join the network.
5755
$ cd ~/connectedhomeip
5856
$ rm -rf out/
5957

60-
_To build with Infineon Hardware Security Module-OPTIGA™ Trust M for Device
61-
attestation and other security use cases, please refer to the
62-
[Building with OPTIGA™ Trust M as HSM](#building-with-optiga-trust-m-as-hsm) for
63-
more instructions_
64-
6558
## Flashing the Application
6659

6760
- Put CY8CKIT-062S2-43012 board on KitProg3 CMSIS-DAP Mode by pressing the
@@ -135,50 +128,10 @@ commands. These power cycle the BlueTooth hardware and disable BR/EDR mode.
135128
on the board. All the data configured on the device during the initial
136129
commissioning will be deleted and device will be ready for commissioning
137130
again.
131+
138132
- Pressing the button again within 5 seconds will cancel the factory reset of
139133
the board.
140134

141-
## Building with Optiga Trust M as HSM
142-
143-
Infineon Hardware Security Module-OPTIGA™ Trust M is a high-end security
144-
solution that provides an anchor of trust for connecting IoT devices to the
145-
cloud, giving every IoT device its own unique identity.
146-
147-
- Supported hardware setup:
148-
[CY8CKIT-062S2-43012](https://www.cypress.com/CY8CKIT-062S2-43012)
149-
150-
[OPTIGA™ Trust M MTR](https://www.infineon.com/cms/en/product/evaluation-boards/trust-m-mtr-shield/)
151-
152-
[OPTIGA™ Trust Adapter](https://www.infineon.com/cms/en/product/evaluation-boards/optiga-trust-adapter/)
153-
154-
- Building:
155-
156-
Follow the steps to build with OPTIGA™ Trust M for device attestation use
157-
case:
158-
159-
```
160-
$ source scripts/activate.sh
161-
$ scripts/build/build_examples.py --no-log-timestamps --target 'infineon-psoc6-lock-trustm' build
162-
```
163-
164-
- To delete generated executable, libraries and object files use:
165-
166-
$ cd ~/connectedhomeip
167-
$ rm -rf out/
168-
169-
- Proceed to OPTIGA™ Trust M Provisioning section to complete the credential
170-
storage into HSM.
171-
172-
### Optiga Trust M Provisioning
173-
174-
For the description of OPTIGA™ Trust M Provisioning with test DAC generation and
175-
PAI and CD storage, please refer to
176-
[Infineon OPTIGA™ Trust M Provisioning](../../../../docs/guides/infineon_trustm_provisioning.md)
177-
178-
After completing OPTIGA™ Trust M Provisioning, proceed to
179-
[Flashing the Application](#flashing-the-application) section to continue with
180-
subsequent steps.
181-
182135
## OTA Software Update
183136

184137
For the description of Software Update process with infineon PSoC6 example

examples/lock-app/infineon/psoc6/args.gni

-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
import("//build_overrides/chip.gni")
1616
import("//build_overrides/pigweed.gni")
1717
import("${chip_root}/config/standalone/args.gni")
18-
import("${chip_root}/src/crypto/crypto.gni")
1918
import("${chip_root}/src/platform/Infineon/PSOC6/args.gni")
2019

2120
psoc6_target_project =
2221
get_label_info(":lock_app_sdk_sources", "label_no_toolchain")
23-
24-
import("${chip_root}/src/platform/Infineon/crypto/trustm/args.gni")

examples/lock-app/infineon/psoc6/src/AppTask.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@
4545
#include <app/clusters/door-lock-server/door-lock-server.h>
4646
#include <app/clusters/identify-server/identify-server.h>
4747

48-
#if ENABLE_DEVICE_ATTESTATION
49-
#include <DeviceAttestationCredsExampleTrustM.h>
50-
#endif
51-
5248
/* OTA related includes */
5349
#if CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR
5450
#include <app/clusters/ota-requestor/BDXDownloader.h>
@@ -161,12 +157,7 @@ static void InitServer(intptr_t context)
161157
chip::DeviceLayer::SetDeviceInfoProvider(&gExampleDeviceInfoProvider);
162158

163159
// Initialize device attestation config
164-
#if ENABLE_DEVICE_ATTESTATION
165-
SetDeviceAttestationCredentialsProvider(Examples::GetExampleTrustMDACProvider());
166-
#else
167160
SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider());
168-
#endif
169-
170161
#if CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR
171162
GetAppTask().InitOTARequestor();
172163
#endif

scripts/build/build/targets.py

-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ def BuildInfineonTarget():
409409
# modifiers
410410
target.AppendModifier('ota', enable_ota_requestor=True)
411411
target.AppendModifier('updateimage', update_image=True)
412-
target.AppendModifier('trustm', enable_trustm=True)
413412

414413
return target
415414

scripts/build/builders/infineon.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ def __init__(self,
8080
app: InfineonApp = InfineonApp.LOCK,
8181
board: InfineonBoard = InfineonBoard.PSOC6BOARD,
8282
enable_ota_requestor: bool = False,
83-
update_image: bool = False,
84-
enable_trustm: bool = False):
83+
update_image: bool = False):
8584
super(InfineonBuilder, self).__init__(
8685
root=app.BuildRoot(root),
8786
runner=runner)
@@ -93,10 +92,6 @@ def __init__(self,
9392
self.extra_gn_options.append('chip_enable_ota_requestor=true')
9493
if update_image:
9594
self.extra_gn_options.append('build_update_image=true')
96-
if enable_trustm:
97-
self.extra_gn_options.append('chip_crypto=\"platform\"')
98-
if enable_trustm is False:
99-
self.extra_gn_options.append('chip_crypto=\"mbedtls\"')
10095

10196
def GnBuildArgs(self):
10297
return self.extra_gn_options

scripts/build/testdata/all_targets_linux_x64.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ linux-fake-tests[-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-ossfuz
1313
linux-{x64,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,java-matter-controller,kotlin-matter-controller,minmdns,light,lock,shell,ota-provider,ota-requestor,simulated-app1,simulated-app2,python-bindings,tv-app,tv-casting-app,bridge,tests,chip-cert,address-resolve-tool,contact-sensor,dishwasher,microwave-oven,refrigerator,rvc,air-purifier,lit-icd,air-quality-sensor,network-manager,energy-management}[-nodeps][-nlfaultinject][-platform-mdns][-minmdns-verbose][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-ossfuzz][-coverage][-dmalloc][-clang][-test][-rpc][-with-ui][-evse-test-event]
1414
linux-x64-efr32-test-runner[-clang]
1515
imx-{chip-tool,lighting-app,thermostat,all-clusters-app,all-clusters-minimal-app,ota-provider-app}[-release]
16-
infineon-psoc6-{lock,light,all-clusters,all-clusters-minimal}[-ota][-updateimage][-trustm]
16+
infineon-psoc6-{lock,light,all-clusters,all-clusters-minimal}[-ota][-updateimage]
1717
rw61x-{all-clusters-app,thermostat,laundry-washer}[-ota][-wifi][-thread][-factory-data][-matter-shell]
1818
k32w-{k32w0,k32w1}-{light,shell,lock,contact}[-se05x][-no-ble][-no-ota][-low-power][-nologs][-crypto-platform][-tokenizer][-openthread-ftd]
1919
mbed-cy8cproto_062_4343w-{lock,light,all-clusters,all-clusters-minimal,pigweed,ota-requestor,shell}[-release][-develop][-debug]

src/platform/Infineon/crypto/infineon_crypto.gni

-20
This file was deleted.

src/platform/Infineon/crypto/trustm/BUILD.gn

-64
This file was deleted.

0 commit comments

Comments
 (0)