Skip to content

Run the STM32Sim F417 wolfCrypt test in the STM32 simulator workflow - #12290

Open
LinuxJedi wants to merge 1 commit into
wolfSSL:masterfrom
LinuxJedi:stm32-sim-f417-wolfcrypt
Open

LinuxJedi wants to merge 1 commit into
wolfSSL:masterfrom
LinuxJedi:stm32-sim-f417-wolfcrypt

Conversation

@LinuxJedi

Copy link
Copy Markdown
Member

Description

Adds the STM32Sim STM32F417 wolfCrypt test to stm32-sim.yml.

The H753, U585 and MP135 firmware all set NO_DES3 and use WOLFSSL_STM32_RNG_NOLIB, so CI currently never builds:

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_REF moves from 02351c8 to 95af06fe13, the merge of wolfSSL/simulators#27. That commit carries the F417 target and run-wolfcrypt-f417.sh, and its MP135 user_settings.h still has the anchor the SHAKE sed step 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 SHAKE sed.

Entry Result
H753 passed
U585 passed
MP135 (SHAKE on) passed
F417 (new) passed in 28 s: DES, DES3, AES-CBC/CTR/GCM, MD5, SHA, SHA-256, HMAC, RANDOM, RSA, ECC
F417-RNG-fault all 10 scenarios ok, mutex released

actionlint is clean.

The new entry has its own ghcr cache tag (stm32-F417), and nothing writes to it until the weekend cron or a manual workflow_dispatch runs. Until then the F417 job builds the image from scratch, which takes about 4 minutes.

Checklist

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

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.
Copilot AI balanced review requested due to automatic review settings November 27, 2026 07:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

zephyr-frdm_rw612

  • FLASH: datas +16 B, log_const_area -8 B, rodata +108 B, text +13,920 B (+5.0%, 296,500 B / 67,108,864 B, total: 0% used)
  • RAM: bss +49 B, datas +16 B (+0.1%, 58,423 B / 983,040 B, total: 6% used)

No memory changes detected for:


Catch memory regressions in CI with MemBrowse. Free for open source.

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