Repository navigation
Conversation
The H753, U585 and MP135 firmware all set NO_DES3 and use WOLFSSL_STM32_RNG_NOLIB, so CI never builds the STM32 hardware DES/TDES code or the CubeMX HAL arm of wc_GenerateSeed(). Add an F417 entry that runs the STM32Sim STM32F417 wolfCrypt test, which covers both (DES/TDES in CBC and ECB modes), along with the F4 CRYP AES without hardware GCM and the F4 HASH register layout (SHA-1, MD5). Move SIMULATORS_REF to the merge of wolfSSL/simulators#27, which carries the F417 target and run-wolfcrypt-f417.sh.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the STM32F417 CI coverage addition.
No open issues 🎉
What changed in this PR
Adds STM32F417 wolfCrypt testing to the STM32 simulator workflow, extending CI coverage to hardware DES/TDES and the CubeMX HAL RNG path not exercised by the existing targets.
Changes:
- Adds an F417 matrix entry running
run-wolfcrypt-f417.sh. - Updates the pinned simulator revision to
95af06fe13, which includes the F417 target. - Expands workflow comments to describe F417-specific cryptographic coverage.
| File | Description |
|---|---|
.github/workflows/stm32-sim.yml |
Adds F417 testing, updates the simulator pin, and documents the additional coverage. |
Review effort: Balanced
|
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 the STM32Sim STM32F417 wolfCrypt test to
stm32-sim.yml.The H753, U585 and MP135 firmware all set
NO_DES3and useWOLFSSL_STM32_RNG_NOLIB, so CI currently never builds:wc_GenerateSeed()The F417 firmware (CubeF4 HAL,
STM32_HAL_V2) covers both. It also covers the F4 CRYP AES without hardware GCM and the F4 HASH register layout (SHA-1, MD5).SIMULATORS_REFmoves from02351c8to95af06fe13, the merge of wolfSSL/simulators#27. That commit carries the F417 target andrun-wolfcrypt-f417.sh, and its MP135user_settings.hstill has the anchor the SHAKEsedstep needs.Testing
I ran every matrix entry locally against this branch, using the simulator image built from
95af06fe13. For MP135, the context was patched with the workflow's SHAKEsed.actionlintis clean.The new entry has its own ghcr cache tag (
stm32-F417), and nothing writes to it until the weekend cron or a manualworkflow_dispatchruns. Until then the F417 job builds the image from scratch, which takes about 4 minutes.Checklist