Skip to content

Fix for using STM32 AES hardware crypto with WOLFSSL_ARMASM set#10311

Merged
douzzer merged 1 commit into
wolfSSL:masterfrom
dgarske:stm32_gmac
Apr 29, 2026
Merged

Fix for using STM32 AES hardware crypto with WOLFSSL_ARMASM set#10311
douzzer merged 1 commit into
wolfSSL:masterfrom
dgarske:stm32_gmac

Conversation

@dgarske

@dgarske dgarske commented Apr 25, 2026

Copy link
Copy Markdown
Member

Description

Fix for using STM32 AES hardware crypto with WOLFSSL_ARMASM set (ZD 21262)

Testing

Using actual STM32F4 hardware and new wolfssl-examples-stm32 coming soon.

Checklist

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

@dgarske dgarske self-assigned this Apr 25, 2026
Copilot AI review requested due to automatic review settings April 25, 2026 00:15

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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adjusts AES-GCM key setup to avoid the ARM assembly AES ECB helper when building for STM32 hardware crypto, preventing use of an implementation that requires an expanded key schedule.

Changes:

  • Adds STM32-specific rationale and disables the WOLFSSL_ARMASM path when STM32_CRYPTO is enabled.
  • Ensures AES-GCM key setup can fall back to the STM32 CRYP-backed encrypt path rather than AES_ECB_encrypt.

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

Comment thread wolfcrypt/src/aes.c Outdated
@github-actions

github-actions Bot commented Apr 25, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@dgarske dgarske assigned wolfSSL-Bot and unassigned dgarske Apr 28, 2026
@dgarske
dgarske requested a review from douzzer April 28, 2026 00:09
@dgarske

dgarske commented Apr 28, 2026

Copy link
Copy Markdown
Member Author

Jenkins retest this please

@douzzer
douzzer merged commit d7a34d4 into wolfSSL:master Apr 29, 2026
462 checks passed
Frauschi pushed a commit to Frauschi/wolfssl that referenced this pull request Apr 29, 2026
Fix for using STM32 AES hardware crypto with WOLFSSL_ARMASM set
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