Skip to content

Add STM32U3 hardware crypto support#10361

Merged
lealem47 merged 1 commit intowolfSSL:masterfrom
dgarske:stm32u3
Apr 30, 2026
Merged

Add STM32U3 hardware crypto support#10361
lealem47 merged 1 commit intowolfSSL:masterfrom
dgarske:stm32u3

Conversation

@dgarske
Copy link
Copy Markdown
Member

@dgarske dgarske commented Apr 30, 2026

Description

Adds STM32U3 hardware crypto for AES, Hash and TRNG.

Testing

Tested on NUCLEO-U385RG-Q. See wolfSSL/wolfssl-examples-stm32#12

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@dgarske dgarske self-assigned this Apr 30, 2026
Copilot AI review requested due to automatic review settings April 30, 2026 16:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds STM32U3 platform wiring so existing STM32 hardware-acceleration code paths (AES, HASH/HMAC, RNG) can be enabled for STM32U3 targets, primarily in STM32Cube/CubeMX configurations.

Changes:

  • Add WOLFSSL_STM32U3 to STM32 platform detection in settings.h, including CubeMX HAL include and AES-192 disablement for HW crypto.
  • Extend STM32 port feature-detection macros to treat WOLFSSL_STM32U3 like other STM32 families for AES-GCM / HAL v2 selection.
  • Update STM32CubeMX template and README to allow enabling STM32U3 (tested with STM32U385xx).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
wolfssl/wolfcrypt/settings.h Adds STM32U3 to STM32 settings block, HW crypto constraints, and CubeMX HAL include selection.
wolfssl/wolfcrypt/port/st/stm32.h Enables STM32U3 in AES-GCM/HAL-v2/AES-only feature detection macros.
IDE/STM32Cube/default_conf.ftl Maps STM32U385xx to WOLFSSL_STM32U3 and enables HASH/CRYPTO acceleration in generated configs.
IDE/STM32Cube/README.md Documents the new WOLFSSL_STM32U3 define for CubeMX users.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dgarske
Copy link
Copy Markdown
Member Author

dgarske commented Apr 30, 2026

Jenkins retest this please. Agent offline exception

@lealem47 lealem47 merged commit 8541142 into wolfSSL:master Apr 30, 2026
525 of 528 checks passed
@github-actions
Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

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.

4 participants