@@ -374,42 +374,6 @@ For `TF-M` protected storage use:
374
374
[Open IoT SDK build script](../../scripts/examples/openiotsdk_example.sh)
375
375
provides the `-K,--kvsfile` option to use the persistence options listed above.
376
376
377
- ### Crypto backend
378
-
379
- Open IoT SDK port supports two crypto backend implementations:
380
-
381
- - [Mbed TLS](../guides/openiotsdk_platform_overview.md#mbed-tls) - it's the
382
- default option
383
- - [PSA crypto service](https://tf-m-user-guide.trustedfirmware.org/integration_guide/services/tfm_crypto_integration_guide.html)
384
- from the
385
- [TrustedFirmware-M (TF-M)](../guides/openiotsdk_platform_overview.md#trusted-firmware-m)
386
- component
387
-
388
- The CMake variable `CONFIG_CHIP_CRYPTO` controls how cryptographic operations
389
- are implemented in Matter. It accepts two values:
390
-
391
- - `mbedtls`: use Mbed TLS for crypto operations.
392
- - `psa`: use
393
- [PSA Cryptography API](https://armmbed.github.io/mbed-crypto/html/) for
394
- crypto operations.
395
-
396
- This variable can be set in the main application `CMakeLists.txt`:
397
-
398
- ```
399
- set(CONFIG_CHIP_CRYPTO <mbedtls | psa>)
400
- ```
401
-
402
- The variable can also be defined with CMake CLI:
403
-
404
- ```
405
- cmake -G <...> -DCONFIG_CHIP_CRYPTO=<mbedtls | psa> <...>
406
- ```
407
-
408
- > 💡 **Notes**:
409
- >
410
- > The `TF-M PSA crypto` option requires enabling [TF-M](#trusted-firmware-m)
411
- > support.
412
-
413
377
## Building
414
378
415
379
You can build examples using the dedicated VSCode task or by calling directly
@@ -422,7 +386,6 @@ the build script from the command line.
422
386
- Select `Build Open IoT SDK example`
423
387
- Decide on debug mode support
424
388
- Decide on LwIP debug logs support
425
- - Choose crypto algorithm
426
389
- Choose example name
427
390
428
391
This will call the script with the selected parameters.
@@ -605,12 +568,12 @@ telnet> close
605
568
606
569
## Specific examples
607
570
608
- ### Build lock-app example with PSA crypto backend support and run it in the network namespace
571
+ ### Build lock-app example and run it in the network namespace
609
572
610
573
**Using CLI**
611
574
612
575
```
613
- ${MATTER_ROOT}/scripts/examples/openiotsdk_example.sh -b psa lock-app
576
+ ${MATTER_ROOT}/scripts/examples/openiotsdk_example.sh lock-app
614
577
615
578
export TEST_NETWORK_NAME=OIStest
616
579
@@ -630,7 +593,6 @@ Build example:
630
593
- Select `Build Open IoT SDK example`
631
594
- Deny debug mode support `false`
632
595
- Deny LwIP debug logs support `false`
633
- - Choose crypto algorithm `psa`
634
596
- Choose example name `lock-app`
635
597
636
598
Setup network environment:
@@ -652,12 +614,12 @@ Run example:
652
614
653
615
The example output should be seen in the terminal window.
654
616
655
- ### Build lock-app example with mbedtls crypto backend support and execute its test in the network namespace
617
+ ### Build lock-app example and execute its test in the network namespace
656
618
657
619
**Using CLI**
658
620
659
621
```
660
- ${MATTER_ROOT}/scripts/examples/openiotsdk_example.sh -b mbedtls lock-app
622
+ ${MATTER_ROOT}/scripts/examples/openiotsdk_example.sh lock-app
661
623
662
624
export TEST_NETWORK_NAME=OIStest
663
625
@@ -677,7 +639,6 @@ Build example:
677
639
- Select `Build Open IoT SDK example`
678
640
- Deny debug mode support `false`
679
641
- Deny LwIP debug logs support `false`
680
- - Choose crypto algorithm `mbedtls`
681
642
- Choose example name `lock-app`
682
643
683
644
Setup network environment:
@@ -697,7 +658,7 @@ Test example:
697
658
- Enter network interface `OIStesttap`
698
659
- Choose example name `lock-app`
699
660
700
- ### Build lock-app example with mbedtls crypto backend support in debug mode and debug it in the network namespace using the VSCode task
661
+ ### Build lock-app example in debug mode and debug it in the network namespace using the VSCode task
701
662
702
663
Build example:
703
664
@@ -706,7 +667,6 @@ Build example:
706
667
- Select `Build Open IoT SDK example`
707
668
- Confirm debug mode support `true`
708
669
- Deny LwIP debug logs support `false`
709
- - Choose crypto algorithm `mbedtls`
710
670
- Choose example name `lock-app`
711
671
712
672
Setup network environment:
@@ -797,7 +757,7 @@ Example:
797
757
id: build_new_example
798
758
timeout-minutes: 10
799
759
run: |
800
- scripts/examples/openiotsdk_example.sh -b ${{ matrix.cryptoBackend }} new-example
760
+ scripts/examples/openiotsdk_example.sh new-example
801
761
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
802
762
openiotsdk release new-example \
803
763
examples/new-example/openiotsdk/build/chip-openiotsdk-new-example-example.elf \
0 commit comments