How benbaratte/stse works
This repository provides a Zephyr integration for the STSAFE secure-element library, with a shell demo and Mbed TLS adapters. The principal workflow is to initialize the device and establish a host session, then issue secure-element operations such as authentication, key management, data storage, cryptography, and randomness; certificate helpers and TLS-facing adapters extend that workflow. Platform modules supply I²C, AES, CRC, power, delay, random, and service abstractions. The README has no capability detail, and most STSELib implementation was not sampled, so core-library links are shown as unverified rather than asserted calls.
Main entry points: stselib_shell.c Command shell · stselib_mbedtls.c Mbed TLS adapter · stse_platform_crc.c CRC adapter · stselib_mbedtls.h Mbed TLS interface
Components 20
Secure-element APIs
- Device management
- Device authentication
- Key management
- Crypto operations
- Data storage
- Random generation
Device and certificates
- Frame and session
- Device state
- STSAFE-A services
- Certificate handling
Zephyr platform
- I²C transport
STSELib_Platform/stse_platform_i2c.c - AES primitives
STSELib_Platform/stse_platform_aes.c - Crypto primitives
STSELib_Platform/stse_platform_crypto.c - CRC adapter
STSELib_Platform/stse_platform_crc.c - CRC16 implementation
crc16/crc16.c - Platform services
STSELib_Platform
Shell and TLS
- Command shell
STSELib_Shell/stselib_shell.c - Mbed TLS adapter
STSELib_Shell/stselib_mbedtls.c - Mbed TLS interface
STSELib_Shell/stselib_mbedtls.h
Other components
- Embedded application
Connections 17
- Embedded application → Command shell: runs commands
STSELib_Shell/stselib_shell.c - Command shell → Device state: initializes device
STSELib_Shell/stselib_shell.c - Command shell → STSAFE-A services: opens host session
STSELib_Shell/stselib_shell.c - Mbed TLS adapter → Data storage: reads certificate data
STSELib_Shell/stselib_mbedtls.c - Mbed TLS adapter → STSAFE-A services: generates ECC key
STSELib_Shell/stselib_mbedtls.c - Mbed TLS interface → Mbed TLS adapter: declares interface
STSELib_Shell/stselib_mbedtls.c - CRC adapter → CRC16 implementation: delegates CRC
STSELib_Platform/stse_platform_crc.c - Device management → Device state: uses device core
- Device authentication → STSAFE-A services: dispatches authentication
- Key management → STSAFE-A services: dispatches key operations
- Crypto operations → STSAFE-A services: dispatches crypto operations
- Data storage → STSAFE-A services: dispatches storage operations
- Random generation → STSAFE-A services: dispatches random request
- STSAFE-A services → Frame and session: uses framing
- Frame and session → I²C transport: uses bus transport
- STSAFE-A services → AES primitives: uses AES primitives
- STSAFE-A services → Crypto primitives: uses crypto primitives