Skip to content

Fix SHAKE with STM32MP13 and add simulator#10494

Open
LinuxJedi wants to merge 1 commit into
wolfSSL:masterfrom
LinuxJedi:STM32MP13-SHAKE
Open

Fix SHAKE with STM32MP13 and add simulator#10494
LinuxJedi wants to merge 1 commit into
wolfSSL:masterfrom
LinuxJedi:STM32MP13-SHAKE

Conversation

@LinuxJedi
Copy link
Copy Markdown
Member

This fixes the fact that you can't compile SHAKE when SHA-3 hardware acceleration is enabled for STM32. It also adds the STM32MP13 emulator with hardware support from the simulators repo.

Copilot AI review requested due to automatic review settings May 18, 2026 21:30
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

This PR enables SHAKE builds on STM32 targets when STM32_HASH_SHA3 is enabled by selectively compiling the software Keccak primitives alongside the STM32 SHA-3 hardware backend, and expands CI coverage by adding an STM32MP135 simulator run.

Changes:

  • Add WC_SHA3_SW_KECCAK gating so software Keccak primitives can be compiled when STM32 SHA-3 hardware acceleration is enabled but SHAKE is also enabled.
  • Update SHA-3 software-implementation preprocessor guards to use WC_SHA3_SW_KECCAK.
  • Extend the STM32 simulator GitHub Actions workflow matrix to include STM32MP135 and temporarily patch simulator firmware settings to enable SHAKE.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
wolfcrypt/src/sha3.c Introduces WC_SHA3_SW_KECCAK and switches software Keccak compilation guards to allow SHAKE-on-software with STM32 SHA-3 HW enabled.
.github/workflows/stm32-sim.yml Adds STM32MP135 to the simulator CI matrix and applies a temporary firmware settings patch to exercise SHAKE.

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

Comment thread wolfcrypt/src/sha3.c
Comment thread wolfcrypt/src/sha3.c Outdated
Comment thread .github/workflows/stm32-sim.yml
This fixes the fact that you can't compile SHAKE when SHA-3 hardware
acceleration is enabled for STM32. It also adds the STM32MP13 emulator
with hardware support from the simulators repo.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 18, 2026

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.

3 participants