@@ -690,7 +690,7 @@ void TestBasicAddNocUpdateNocFlow(nlTestSuite * inSuite, void * inContext)
690
690
FabricId fabricId = 44 ;
691
691
NodeId nodeId = 999 ;
692
692
693
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
693
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
694
694
MutableByteSpan csrSpan{ csrBuf };
695
695
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
696
696
@@ -810,7 +810,7 @@ void TestBasicAddNocUpdateNocFlow(nlTestSuite * inSuite, void * inContext)
810
810
NodeId nodeId = 1000 ;
811
811
FabricIndex fabricIndex = 2 ;
812
812
813
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
813
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
814
814
MutableByteSpan csrSpan{ csrBuf };
815
815
816
816
// Make sure to tag fabric index to pending opkey: otherwise the UpdateNOC fails
@@ -1070,7 +1070,7 @@ void TestAddMultipleSameRootDifferentFabricId(nlTestSuite * inSuite, void * inCo
1070
1070
FabricId fabricId = 1111 ;
1071
1071
NodeId nodeId = 55 ;
1072
1072
1073
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
1073
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
1074
1074
MutableByteSpan csrSpan{ csrBuf };
1075
1075
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
1076
1076
@@ -1113,7 +1113,7 @@ void TestAddMultipleSameRootDifferentFabricId(nlTestSuite * inSuite, void * inCo
1113
1113
FabricId fabricId = 2222 ;
1114
1114
NodeId nodeId = 66 ;
1115
1115
1116
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
1116
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
1117
1117
MutableByteSpan csrSpan{ csrBuf };
1118
1118
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
1119
1119
@@ -1177,7 +1177,7 @@ void TestAddMultipleSameFabricIdDifferentRoot(nlTestSuite * inSuite, void * inCo
1177
1177
FabricId fabricId = 1111 ;
1178
1178
NodeId nodeId = 55 ;
1179
1179
1180
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
1180
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
1181
1181
MutableByteSpan csrSpan{ csrBuf };
1182
1182
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
1183
1183
@@ -1220,7 +1220,7 @@ void TestAddMultipleSameFabricIdDifferentRoot(nlTestSuite * inSuite, void * inCo
1220
1220
FabricId fabricId = 1111 ;
1221
1221
NodeId nodeId = 66 ;
1222
1222
1223
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
1223
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
1224
1224
MutableByteSpan csrSpan{ csrBuf };
1225
1225
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
1226
1226
@@ -1302,7 +1302,7 @@ void TestPersistence(nlTestSuite * inSuite, void * inContext)
1302
1302
FabricId fabricId = 1111 ;
1303
1303
NodeId nodeId = 55 ;
1304
1304
1305
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
1305
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
1306
1306
MutableByteSpan csrSpan{ csrBuf };
1307
1307
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
1308
1308
@@ -1361,7 +1361,7 @@ void TestPersistence(nlTestSuite * inSuite, void * inContext)
1361
1361
FabricId fabricId = 2222 ;
1362
1362
NodeId nodeId = 66 ;
1363
1363
1364
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
1364
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
1365
1365
MutableByteSpan csrSpan{ csrBuf };
1366
1366
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
1367
1367
@@ -1614,7 +1614,7 @@ void TestAddNocFailSafe(nlTestSuite * inSuite, void * inContext)
1614
1614
FabricId fabricId = 11 ;
1615
1615
NodeId nodeId = 55 ;
1616
1616
1617
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
1617
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
1618
1618
MutableByteSpan csrSpan{ csrBuf };
1619
1619
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
1620
1620
@@ -1700,7 +1700,7 @@ void TestAddNocFailSafe(nlTestSuite * inSuite, void * inContext)
1700
1700
FabricId fabricId = 44 ;
1701
1701
NodeId nodeId = 999 ;
1702
1702
1703
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
1703
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
1704
1704
MutableByteSpan csrSpan{ csrBuf };
1705
1705
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
1706
1706
@@ -1846,7 +1846,7 @@ void TestUpdateNocFailSafe(nlTestSuite * inSuite, void * inContext)
1846
1846
FabricId fabricId = 44 ;
1847
1847
NodeId nodeId = 999 ;
1848
1848
1849
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
1849
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
1850
1850
MutableByteSpan csrSpan{ csrBuf };
1851
1851
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
1852
1852
@@ -1937,7 +1937,7 @@ void TestUpdateNocFailSafe(nlTestSuite * inSuite, void * inContext)
1937
1937
NodeId nodeId = 1000 ;
1938
1938
FabricIndex fabricIndex = 1 ;
1939
1939
1940
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
1940
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
1941
1941
MutableByteSpan csrSpan{ csrBuf };
1942
1942
1943
1943
// Make sure to tag fabric index to pending opkey: otherwise the UpdateNOC fails
@@ -2049,7 +2049,7 @@ void TestUpdateNocFailSafe(nlTestSuite * inSuite, void * inContext)
2049
2049
NodeId nodeId = 1001 ;
2050
2050
FabricIndex fabricIndex = 1 ;
2051
2051
2052
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
2052
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
2053
2053
MutableByteSpan csrSpan{ csrBuf };
2054
2054
2055
2055
// Make sure to tag fabric index to pending opkey: otherwise the UpdateNOC fails
@@ -2220,7 +2220,7 @@ void TestFabricLabelChange(nlTestSuite * inSuite, void * inContext)
2220
2220
FabricId fabricId = 1111 ;
2221
2221
NodeId nodeId = 55 ;
2222
2222
2223
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
2223
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
2224
2224
MutableByteSpan csrSpan{ csrBuf };
2225
2225
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
2226
2226
@@ -2291,7 +2291,7 @@ void TestFabricLabelChange(nlTestSuite * inSuite, void * inContext)
2291
2291
FabricId fabricId = 1111 ;
2292
2292
NodeId nodeId = 66 ; // Update node ID from 55 to 66
2293
2293
2294
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
2294
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
2295
2295
MutableByteSpan csrSpan{ csrBuf };
2296
2296
NL_TEST_ASSERT_SUCCESS (inSuite,
2297
2297
fabricTable.AllocatePendingOperationalKey (chip::MakeOptional (static_cast <FabricIndex>(1 )), csrSpan));
@@ -2449,7 +2449,7 @@ void TestAddNocRootCollision(nlTestSuite * inSuite, void * inContext)
2449
2449
FabricId fabricId = 1111 ;
2450
2450
NodeId nodeId = 55 ;
2451
2451
2452
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
2452
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
2453
2453
MutableByteSpan csrSpan{ csrBuf };
2454
2454
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
2455
2455
@@ -2502,7 +2502,7 @@ void TestAddNocRootCollision(nlTestSuite * inSuite, void * inContext)
2502
2502
FabricId fabricId = 1111 ;
2503
2503
NodeId nodeId = 55 ;
2504
2504
2505
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
2505
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
2506
2506
MutableByteSpan csrSpan{ csrBuf };
2507
2507
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
2508
2508
@@ -2556,7 +2556,7 @@ void TestAddNocRootCollision(nlTestSuite * inSuite, void * inContext)
2556
2556
FabricId fabricId = 2222 ;
2557
2557
NodeId nodeId = 55 ;
2558
2558
2559
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
2559
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
2560
2560
MutableByteSpan csrSpan{ csrBuf };
2561
2561
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
2562
2562
@@ -2629,7 +2629,7 @@ void TestInvalidChaining(nlTestSuite * inSuite, void * inContext)
2629
2629
FabricId fabricId = 1111 ;
2630
2630
NodeId nodeId = 55 ;
2631
2631
2632
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
2632
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
2633
2633
MutableByteSpan csrSpan{ csrBuf };
2634
2634
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
2635
2635
@@ -2816,7 +2816,7 @@ void TestCommitMarker(nlTestSuite * inSuite, void * inContext)
2816
2816
FabricId fabricId = 1111 ;
2817
2817
NodeId nodeId = 55 ;
2818
2818
2819
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
2819
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
2820
2820
MutableByteSpan csrSpan{ csrBuf };
2821
2821
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
2822
2822
@@ -2882,7 +2882,7 @@ void TestCommitMarker(nlTestSuite * inSuite, void * inContext)
2882
2882
FabricId fabricId = 2222 ;
2883
2883
NodeId nodeId = 66 ;
2884
2884
2885
- uint8_t csrBuf[chip::Crypto::kMAX_CSR_Length ];
2885
+ uint8_t csrBuf[chip::Crypto::kMIN_CSR_Buffer_Size ];
2886
2886
MutableByteSpan csrSpan{ csrBuf };
2887
2887
NL_TEST_ASSERT_SUCCESS (inSuite, fabricTable.AllocatePendingOperationalKey (chip::NullOptional, csrSpan));
2888
2888
0 commit comments