Skip to content

Add DHUK AES-CBC chained in-place decrypt regression test#14

Open
dgarske wants to merge 1 commit into
wolfSSL:mainfrom
dgarske:stm32_bare2
Open

Add DHUK AES-CBC chained in-place decrypt regression test#14
dgarske wants to merge 1 commit into
wolfSSL:mainfrom
dgarske:stm32_bare2

Conversation

@dgarske

@dgarske dgarske commented Jul 10, 2026

Copy link
Copy Markdown
Member

@dgarske dgarske requested a review from mattia-moffa July 10, 2026 22:33
@dgarske dgarske self-assigned this Jul 10, 2026
Copilot AI review requested due to automatic review settings July 10, 2026 22:33

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

This PR extends the STM32 DHUK crypto-callback AES-CBC self-test to cover a regression case for multi-block, chained, in-place CBC decrypt where the chaining IV must be updated correctly across multiple wc_AesCbcDecrypt() calls.

Changes:

  • Adds a 2-block plaintext test vector (pt2) and buffers to exercise chained in-place CBC decrypt.
  • Encrypts two blocks, then decrypts them in-place in two separate calls to validate chaining-IV behavior across calls.
  • Adds pass/fail output for the new regression scenario.

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

Comment thread STM32_Bare_Test/src/main_dhuk.c
Comment thread STM32_Bare_Test/src/main_dhuk.c
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