Skip to content

Commit 6505299

Browse files
[admin] update SDK structure (STSE host & crypto platforms repositories)
1 parent f886d3c commit 6505299

207 files changed

Lines changed: 816 additions & 69521 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[submodule "Middleware/STSELib"]
22
path = Middleware/STSELib
33
url = https://github.com/STMicroelectronics/STSELib.git
4+
[submodule "stse-host-platform"]
5+
path = stse-host-platform
6+
url = https://github.com/STMicroelectronics/stse-host-platforms.git
7+
[submodule "stse-crypto-platform"]
8+
path = stse-crypto-platform
9+
url = https://github.com/STMicroelectronics/stse-crypto-platforms.git

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ repos:
55
- id: clang-format
66
types_or: [c++, c]
77
args: [-i,'-style={IndentWidth: 4, ColumnLimit: 0, BreakStringLiterals: false, ReflowComments: false}']
8-
exclude: Middleware/|Platform/Core/CMSIS/
8+
exclude: Middleware/|stse-host-platform/Core/CMSIS/
99

1010
- repo: https://github.com/pre-commit/pre-commit-hooks
1111
rev: v5.0.0
1212
hooks:
1313
- id: trailing-whitespace
1414
args:
1515
- --markdown-linebreak-ext=md
16-
exclude: Middleware/|Platform/Core/CMSIS/|Documentation
16+
exclude: Middleware/|stse-host-platform/Core/CMSIS/|Documentation
1717
- id: end-of-file-fixer
18-
exclude: Middleware/|Platform/Core/CMSIS/|Documentation
18+
exclude: Middleware/|stse-host-platform/Core/CMSIS/|Documentation
1919
- id: mixed-line-ending
2020
args: [--fix=lf]
21-
exclude: Middleware/|Platform/Core/CMSIS/|Documentation
21+
exclude: Middleware/|stse-host-platform/Core/CMSIS/|Documentation
2222
- id: check-added-large-files
23-
exclude: Middleware/|Platform/Core/CMSIS/|Documentation
23+
exclude: Middleware/|stse-host-platform/Core/CMSIS/|Documentation

Applications/Apps_utils/Apps_utils.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ void apps_print_asymmetric_key_table_info(stse_Handler_t *pSTSE) {
352352
}
353353
}
354354

355+
#ifdef STSE_CONF_STSAFE_A_SUPPORT
356+
355357
/**
356358
* @brief Print host key provisioning control fields
357359
* @param pSTSE Pointer to STSE handler structure
@@ -424,6 +426,8 @@ void apps_print_generic_public_key_slot_configuration_flags(stse_Handler_t *pSTS
424426
printf("\n\r ------+--------------+--------------------------+----------------------------+--------------");
425427
}
426428

429+
#endif /* STSE_CONF_STSAFE_A_SUPPORT */
430+
427431
/**
428432
* @brief Print buffer content in hexadecimal format
429433
* @param buffer Pointer to buffer to display

Applications/Projects/00_Project_template/EWARM/Project.ewp

Lines changed: 52 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,12 @@
355355
<state>$PROJ_DIR$\..\..\..\..\</state>
356356
<state>$PROJ_DIR$\..\..\..\..\Middleware\STM32_Cryptographic\include</state>
357357
<state>$PROJ_DIR$\..\..\..\..\Middleware\STSELib</state>
358-
<state>$PROJ_DIR$\..\..\..\..\Platform</state>
359-
<state>$PROJ_DIR$\..\..\..\..\Platform\Core\CMSIS\Include</state>
360-
<state>$PROJ_DIR$\..\..\..\..\Platform\Core\CMSIS\Device\ST\STM32L4xx\Include</state>
361-
<state>$PROJ_DIR$\..\..\..\..\Platform\STSELib</state>
358+
<state>$PROJ_DIR$\..\..\..\..\stse-host-platform</state>
359+
<state>$PROJ_DIR$\..\..\..\..\stse-host-platform\Core\CMSIS\Include</state>
360+
<state>$PROJ_DIR$\..\..\..\..\stse-host-platform\Core\CMSIS\Device\ST\STM32L4xx\Include</state>
361+
<state>$PROJ_DIR$\..\..\..\..\stse-host-platform\STSELib</state>
362+
<state>$PROJ_DIR$\..\..\..\..\stse-crypto-platform</state>
363+
<state>$PROJ_DIR$\..\..\..\..\stse-crypto-platform\STSELib</state>
362364
</option>
363365
<option>
364366
<name>CCStdIncCheck</name>
@@ -775,7 +777,7 @@
775777
</option>
776778
<option>
777779
<name>IlinkIcfFile</name>
778-
<state>$PROJ_DIR$\..\..\..\..\Platform\Core\CMSIS\Device\ST\STM32L4xx\Source\iar\linker\stm32l452xx_flash.icf</state>
780+
<state>$PROJ_DIR$\..\..\..\..\stse-host-platform\Core\CMSIS\Device\ST\STM32L4xx\Source\iar\linker\stm32l452xx_flash.icf</state>
779781
</option>
780782
<option>
781783
<name>IlinkIcfFileSlave</name>
@@ -1448,10 +1450,12 @@
14481450
<state>$PROJ_DIR$\..\..\..\..\</state>
14491451
<state>$PROJ_DIR$\..\..\..\..\Middleware\STM32_Cryptographic\include</state>
14501452
<state>$PROJ_DIR$\..\..\..\..\Middleware\STSELib</state>
1451-
<state>$PROJ_DIR$\..\..\..\..\Platform</state>
1452-
<state>$PROJ_DIR$\..\..\..\..\Platform\Core\CMSIS\Include</state>
1453-
<state>$PROJ_DIR$\..\..\..\..\Platform\Core\CMSIS\Device\ST\STM32L4xx\Include</state>
1454-
<state>$PROJ_DIR$\..\..\..\..\Platform\STSELib</state>
1453+
<state>$PROJ_DIR$\..\..\..\..\stse-host-platform</state>
1454+
<state>$PROJ_DIR$\..\..\..\..\stse-host-platform\Core\CMSIS\Include</state>
1455+
<state>$PROJ_DIR$\..\..\..\..\stse-host-platform\Core\CMSIS\Device\ST\STM32L4xx\Include</state>
1456+
<state>$PROJ_DIR$\..\..\..\..\stse-host-platform\STSELib</state>
1457+
<state>$PROJ_DIR$\..\..\..\..\stse-crypto-platform</state>
1458+
<state>$PROJ_DIR$\..\..\..\..\stse-crypto-platform\STSELib</state>
14551459
</option>
14561460
<option>
14571461
<name>CCStdIncCheck</name>
@@ -1868,7 +1872,7 @@
18681872
</option>
18691873
<option>
18701874
<name>IlinkIcfFile</name>
1871-
<state>$PROJ_DIR$\..\..\..\..\Platform\Core\CMSIS\Device\ST\STM32L4xx\Source\iar\linker\stm32l452xx_flash.icf</state>
1875+
<state>$PROJ_DIR$\..\..\..\..\stse-host-platform\Core\CMSIS\Device\ST\STM32L4xx\Source\iar\linker\stm32l452xx_flash.icf</state>
18721876
</option>
18731877
<option>
18741878
<name>IlinkIcfFileSlave</name>
@@ -2200,7 +2204,7 @@
22002204
<name>$PROJ_DIR$\..\main.c</name>
22012205
</file>
22022206
<file>
2203-
<name>$PROJ_DIR$\..\..\..\..\Platform\Core\CMSIS\Device\ST\STM32L4xx\Source\iar\startup_stm32l452xx.s</name>
2207+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\Core\CMSIS\Device\ST\STM32L4xx\Source\iar\startup_stm32l452xx.s</name>
22042208
</file>
22052209
<file>
22062210
<name>$PROJ_DIR$\..\stse_conf.h</name>
@@ -2230,6 +2234,9 @@
22302234
<file>
22312235
<name>$PROJ_DIR$\..\..\..\..\Middleware\STSELib\api\stse_data_storage.c</name>
22322236
</file>
2237+
<file>
2238+
<name>$PROJ_DIR$\..\..\..\..\Middleware\STSELib\api\stse_derive_keys.c</name>
2239+
</file>
22332240
<file>
22342241
<name>$PROJ_DIR$\..\..\..\..\Middleware\STSELib\api\stse_device_authentication.c</name>
22352242
</file>
@@ -2301,6 +2308,9 @@
23012308
<file>
23022309
<name>$PROJ_DIR$\..\..\..\..\Middleware\STSELib\services\stsafea\stsafea_data_partition.c</name>
23032310
</file>
2311+
<file>
2312+
<name>$PROJ_DIR$\..\..\..\..\Middleware\STSELib\services\stsafea\stsafea_derive_keys.c</name>
2313+
</file>
23042314
<file>
23052315
<name>$PROJ_DIR$\..\..\..\..\Middleware\STSELib\services\stsafea\stsafea_ecc.c</name>
23062316
</file>
@@ -2390,65 +2400,71 @@
23902400
</group>
23912401
</group>
23922402
<group>
2393-
<name>Platform</name>
2403+
<name>stse-crypto-platform</name>
23942404
<group>
2395-
<name>Core</name>
2405+
<name>STSELib</name>
23962406
<file>
2397-
<name>$PROJ_DIR$\..\..\..\..\Platform\Core\CMSIS\Device\ST\STM32L4xx\Source\system_stm32l4xx.c</name>
2407+
<name>$PROJ_DIR$\..\..\..\..\stse-crypto-platform\STSELib\stse_platform_aes.c</name>
23982408
</file>
2399-
</group>
2400-
<group>
2401-
<name>Drivers</name>
24022409
<file>
2403-
<name>$PROJ_DIR$\..\..\..\..\Platform\Drivers\crc16\crc16.c</name>
2410+
<name>$PROJ_DIR$\..\..\..\..\stse-crypto-platform\STSELib\stse_platform_crypto_init.c</name>
24042411
</file>
24052412
<file>
2406-
<name>$PROJ_DIR$\..\..\..\..\Platform\Drivers\delay_ms\delay_ms.c</name>
2413+
<name>$PROJ_DIR$\..\..\..\..\stse-crypto-platform\STSELib\stse_platform_ecc.c</name>
24072414
</file>
24082415
<file>
2409-
<name>$PROJ_DIR$\..\..\..\..\Platform\Drivers\delay_us\delay_us.c</name>
2416+
<name>$PROJ_DIR$\..\..\..\..\stse-crypto-platform\STSELib\stse_platform_hash.c</name>
24102417
</file>
2418+
</group>
2419+
</group>
2420+
<group>
2421+
<name>stse-host-platform</name>
2422+
<group>
2423+
<name>Core</name>
24112424
<file>
2412-
<name>$PROJ_DIR$\..\..\..\..\Platform\Drivers\i2c\I2C.c</name>
2425+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\Core\CMSIS\Device\ST\STM32L4xx\Source\system_stm32l4xx.c</name>
24132426
</file>
2427+
</group>
2428+
<group>
2429+
<name>Drivers</name>
24142430
<file>
2415-
<name>$PROJ_DIR$\..\..\..\..\Platform\Drivers\rng\rng.c</name>
2431+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\Drivers\crc16\crc16.c</name>
24162432
</file>
24172433
<file>
2418-
<name>$PROJ_DIR$\..\..\..\..\Platform\Drivers\uart\uart.c</name>
2434+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\Drivers\delay_ms\delay_ms.c</name>
24192435
</file>
2420-
</group>
2421-
<group>
2422-
<name>STSELib</name>
24232436
<file>
2424-
<name>$PROJ_DIR$\..\..\..\..\Platform\STSELib\stse_platform_aes.c</name>
2437+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\Drivers\delay_us\delay_us.c</name>
24252438
</file>
24262439
<file>
2427-
<name>$PROJ_DIR$\..\..\..\..\Platform\STSELib\stse_platform_crc.c</name>
2440+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\Drivers\i2c\I2C.c</name>
24282441
</file>
24292442
<file>
2430-
<name>$PROJ_DIR$\..\..\..\..\Platform\STSELib\stse_platform_crypto_init.c</name>
2443+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\Drivers\rng\rng.c</name>
24312444
</file>
24322445
<file>
2433-
<name>$PROJ_DIR$\..\..\..\..\Platform\STSELib\stse_platform_delay.c</name>
2446+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\Drivers\uart\uart.c</name>
24342447
</file>
2448+
</group>
2449+
<group>
2450+
<name>STSELib</name>
24352451
<file>
2436-
<name>$PROJ_DIR$\..\..\..\..\Platform\STSELib\stse_platform_ecc.c</name>
2452+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\STSELib\stse_platform_crc.c</name>
24372453
</file>
24382454
<file>
2439-
<name>$PROJ_DIR$\..\..\..\..\Platform\STSELib\stse_platform_generic.h</name>
2455+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\STSELib\stse_platform_delay.c</name>
24402456
</file>
24412457
<file>
2442-
<name>$PROJ_DIR$\..\..\..\..\Platform\STSELib\stse_platform_hash.c</name>
2458+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\STSELib\stse_platform_generic.h</name>
24432459
</file>
24442460
<file>
2445-
<name>$PROJ_DIR$\..\..\..\..\Platform\STSELib\stse_platform_i2c.c</name>
2461+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\STSELib\stse_platform_i2c.c</name>
24462462
</file>
24472463
<file>
2448-
<name>$PROJ_DIR$\..\..\..\..\Platform\STSELib\stse_platform_power.c</name>
2464+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\STSELib\stse_platform_power.c</name>
24492465
</file>
24502466
<file>
2451-
<name>$PROJ_DIR$\..\..\..\..\Platform\STSELib\stse_platform_random.c</name>
2467+
<name>$PROJ_DIR$\..\..\..\..\stse-host-platform\STSELib\stse_platform_random.c</name>
24522468
</file>
24532469
</group>
24542470
</group>

0 commit comments

Comments
 (0)