Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add STSAFE-A120 Support via STSELib
Description
This PR adds support for the ST STSAFE-A120 secure element using the open-source STSELib SDK. The STSAFE-A120 is ST's latest secure element with enhanced cryptographic capabilities and is the successor to the STSAFE-A100/A110 series.
Changes
Files Modified:
wolfcrypt/src/port/st/stsafe.c- Added STSAFE-A120/STSELib implementationwolfssl/wolfcrypt/port/st/stsafe.h- Added type abstractions and curve mappingswolfcrypt/src/wc_port.c- Updated STSAFE initializationwolfcrypt/src/port/st/README.md- Added documentationFeatures
Configuration
Enable with:
API Compatibility
The new implementation maintains API compatibility with the existing STSAFE-A100 code:
stsafe_interface_init()- Initialize devicewolfSSL_STSAFE_CryptoDevCb()- Crypto callback handlerSSL_STSAFE_*callback functions for TLS integrationTesting
Tested on Raspberry Pi 5 with STSAFE-A120 connected via I2C:
Performance (Raspberry Pi 5)
Notes
stse_conf.hstsafe.hdepend on which curves are enabled instse_conf.hRelated
ZD 20780