Skip to content

STM32_Bare_Test: crypto-callback HW AES/ECDSA targets - #16

Merged
philljj merged 11 commits into
wolfSSL:mainfrom
dgarske:stm32_cubemx_aes_cb
Aug 14, 2026
Merged

STM32_Bare_Test: crypto-callback HW AES/ECDSA targets#16
philljj merged 11 commits into
wolfSSL:mainfrom
dgarske:stm32_cubemx_aes_cb

Conversation

@dgarske

@dgarske dgarske commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

STM32_Bare_Test targets exercising the STM32 crypto-callback hardware AES/ECDSA work on real NUCLEO boards. Companion to wolfSSL PR wolfSSL/wolfssl#10970 (required to build).

Targets

  • cubeaes -- CubeMX AES-GCM crypto-callback KAT under WOLF_CRYPTO_CB_ONLY_AES (McGrew TC3/TC4).
  • cubecrypto -- CubeMX HW ECDSA sign + verify + tamper-reject via the PKA, plus CCB and AES, under WOLF_CRYPTO_CB_ONLY_ECC + _AES (the customer configuration).
  • aesplain -- plaintext-key AES vs DHUK-seed AES, both registered and selected per Aes by devId: a plaintext AES-GCM KAT (whole-block + AAD/partial-block) and coexistence (same key bytes -> distinct ciphertext per devId). SAES+DHUK boards.
  • plaingcm -- direct wc_Stm32_Aes_Gcm HW AES-GCM encrypt + decrypt KAT with no software fallback, confirming the bare HW GCM engine on both the CRYP IP and TinyAES parts.

Testing

All Result: 0 (PASS): NUCLEO-U385RG-Q (CubeMX + bare), NUCLEO-U585 (bare), NUCLEO-F439ZI (CRYP IP).

@dgarske dgarske self-assigned this Jul 22, 2026
Copilot AI review requested due to automatic review settings July 22, 2026 14:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread STM32_Bare_Test/src/main_cubeaes.c
Comment thread STM32_Bare_Test/src/main_cubeaes.c
Comment thread STM32_Bare_Test/src/main_cubecrypto.c
Comment thread STM32_Bare_Test/src/main_cubecrypto.c Outdated
@dgarske dgarske changed the title CubeMX AES crypto-callback GCM test (cubeaes) CubeMX HW crypto-callback tests (cubeaes + cubecrypto) Jul 22, 2026
@dgarske
dgarske force-pushed the stm32_cubemx_aes_cb branch from 1f300ff to 50426e6 Compare July 22, 2026 17:55
@dgarske dgarske assigned wolfSSL-Bot and unassigned dgarske Jul 27, 2026
@dgarske dgarske changed the title CubeMX HW crypto-callback tests (cubeaes + cubecrypto) STM32_Bare_Test: crypto-callback HW AES/ECDSA targets (companion to wolfSSL #10970) Jul 30, 2026
@dgarske dgarske changed the title STM32_Bare_Test: crypto-callback HW AES/ECDSA targets (companion to wolfSSL #10970) STM32_Bare_Test: crypto-callback HW AES/ECDSA targets Jul 30, 2026
@dgarske
dgarske force-pushed the stm32_cubemx_aes_cb branch 2 times, most recently from ed9f1ef to 625f87c Compare August 3, 2026 21:05
@dgarske dgarske assigned dgarske and unassigned wolfSSL-Bot Aug 5, 2026
@dgarske
dgarske force-pushed the stm32_cubemx_aes_cb branch from eae9637 to eaa6af4 Compare August 10, 2026 18:29
@dgarske
dgarske force-pushed the stm32_cubemx_aes_cb branch from eaa6af4 to 2f2540a Compare August 11, 2026 19:28
@dgarske dgarske assigned wolfSSL-Bot and philljj and unassigned dgarske Aug 11, 2026
@dgarske
dgarske requested a review from philljj August 11, 2026 19:28
@philljj
philljj merged commit 6dae7ea into wolfSSL:main Aug 14, 2026
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