Skip to content

Conversation

@dgarske
Copy link

@dgarske dgarske commented Jan 6, 2026

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.

See these PR's adding upstream support and examples:

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.
@parmi93
Copy link

parmi93 commented Jan 7, 2026

Just a question: Is there any plan to introduce a platform abstraction layer for Mbed TLS as well? Additionally, is there any intention to add support for the PSA Cryptographic Interface?

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.

2 participants