Add STM32U3 hardware crypto support#10361
Merged
lealem47 merged 1 commit intowolfSSL:masterfrom Apr 30, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
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_STM32U3to STM32 platform detection insettings.h, including CubeMX HAL include and AES-192 disablement for HW crypto. - Extend STM32 port feature-detection macros to treat
WOLFSSL_STM32U3like 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.
… NUCLEO-U385RG-Q.
lealem47
approved these changes
Apr 30, 2026
Member
Author
|
Jenkins retest this please. Agent offline exception |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adds STM32U3 hardware crypto for AES, Hash and TRNG.
Testing
Tested on NUCLEO-U385RG-Q. See wolfSSL/wolfssl-examples-stm32#12
Checklist