Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1223652

Browse files
committedAug 30, 2022
[MATTER-308][RT1060] Updating the RT1060 all cluster app readme to give more information about AES key to use to encrypt the Matter manufacturing dataset
Signed-off-by: Gatien Chapon <gatien.chapon@nxp.com>
1 parent fb01108 commit 1223652

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
 

‎examples/all-clusters-app/nxp/rt1060/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ user@ubuntu:~/Desktop/git/connectedhomeip$ cd ../../../../examples/all-cluster/n
8383

8484
See [Guide for writing manufacturing data on NXP devices](../../../platform/nxp/doc/manufacturing_flow.md)
8585

86+
Other comments:
87+
88+
The RT1060 all cluster app demonstrates the usage of encrypted Matter manufacturing data storage. Matter manufacturing data should be encrypted before flashing them to the RT1060 flash.
89+
90+
For development purpose the RT1060 all cluster app code could use the hardcoded AES 128 software key. This software key should be used only during development stage.
91+
92+
For production usage, it is recommended to use the OTP key which needs to be fused in the RT1060 SW_GP2. The application note AN12800 should be followed to get more information. In this case the all cluster app should be updated to indicate to the DCP module to use the OTP key instead of the software key.
93+
For that the call to "dataReaderEncryptedDCPInstance->SetAes128Key(&aes128TestKey[0]);" should be changed to "dataReaderEncryptedDCPInstance->SetKeySelected(arg);" with the arg value specifying where the OTP key is stored (kDCP_OCOTPKeyLow for [127:0] of SW_GP2 or kDCP_OCOTPKeyHigh for [255:128] of SW_GP2).
94+
8695
<a name="flashdebug"></a>
8796

8897
## Flashing and debugging

‎examples/all-clusters-app/nxp/rt1060/main/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ uint8_t __attribute__((section(".heap"))) ucHeap[configTOTAL_HEAP_SIZE];
5757
/*
5858
* Test key used to encrypt factory data before storing it to the flash.
5959
* The software key should be used only during development stage.
60-
* For production usage, it is recommended to use the OTP key which needs to be fused in the RT160 SW_GP2.
60+
* For production usage, it is recommended to use the OTP key which needs to be fused in the RT1060 SW_GP2.
6161
*/
6262
static const uint8_t aes128TestKey[] __attribute__((aligned)) = {0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6,
6363
0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c};

0 commit comments

Comments
 (0)
Please sign in to comment.