Skip to content

Fix/53 VLA allocation - #58

Closed
nils-cercariolo-st wants to merge 4 commits into
STMicroelectronics:mainfrom
nils-cercariolo-st:fix/53_vla_allocation
Closed

nils-cercariolo-st wants to merge 4 commits into
STMicroelectronics:mainfrom
nils-cercariolo-st:fix/53_vla_allocation

Conversation

@nils-cercariolo-st

Copy link
Copy Markdown
Contributor

Adds a I2C buffer size definition in conf file which allows to check the received length in case of corruption since CRC isn't checked yet at this time

TofMassilia13320 and others added 2 commits December 16, 2025 12:15
Add platform abstraction layer implementation using wolfSSL/wolfCrypt
for cryptographic operations including:
- AES-ECB, AES-CBC, AES-CMAC encryption/decryption
- SHA-256/SHA-384 hash computation
- ECC key generation, signing, verification (NIST P-256/P-384, Brainpool)
- ECDH key exchange (including Curve25519)
- HMAC-SHA256 HKDF extract/expand (RFC 5869)
- NIST SP 800-38F AES Key Wrap

This enables STSELib integration on platforms using wolfSSL as the
cryptographic provider, providing an alternative to STM32 CMOX.

New files:
- examples/wolfssl/stse_platform_crypto_wolfssl.c: Complete implementation
- examples/wolfssl/user_settings.h: Sample wolfSSL configuration
- examples/wolfssl/README.md: Usage instructions
- doc/.../stse_platform_wolfssl.c.md: Porting guide documentation

Tested on STSAFE-A120 hardware with Raspberry Pi 5.
@nils-cercariolo-st

Copy link
Copy Markdown
Contributor Author

Great points, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants