Skip to content

use heap hint with dilithium benchmark#9970

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
JacobBarthelmeh:bench
Mar 20, 2026
Merged

use heap hint with dilithium benchmark#9970
dgarske merged 1 commit intowolfSSL:masterfrom
JacobBarthelmeh:bench

Conversation

@JacobBarthelmeh
Copy link
Contributor

@JacobBarthelmeh JacobBarthelmeh commented Mar 13, 2026

The was found when answering a direct email support question about ml-dsa with static memory. I tested with the configure ./configure --enable-mldsa --enable-mlkem --enable-staticmemory CPPFLAGS="-DBENCH_EMBEDDED -DWOLFSSL_NO_MALLOC -DWOLFMEM_DIST=49,10,6,14,5,6,16,1,1 -DWOLFMEM_BUCKETS=64,128,256,512,1024,2432,4096,8192,131072 -DWOLFSSL_DEBUG_MEMORY -DWOLFSSL_DEBUG_MEMORY_PRINT -DWOLFSSL_STATIC_MEMORY_TEST_SZ=200000" && make && ./wolfcrypt/benchmark/benchmark -ml-dsa

@JacobBarthelmeh JacobBarthelmeh self-assigned this Mar 13, 2026
Copilot AI review requested due to automatic review settings March 13, 2026 19:46
Copy link
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

Updates the Dilithium benchmark to initialize keys with an explicit heap hint/device id, aligning it with APIs that support custom heap usage.

Changes:

  • Switch Dilithium benchmark initialization from wc_dilithium_init to wc_dilithium_init_ex using HEAP_HINT and devId
  • Update the corresponding error message to reference the new init API

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

You can also share your feedback on Copilot code review. Take the survey.

@JacobBarthelmeh
Copy link
Contributor Author

JacobBarthelmeh commented Mar 20, 2026

Retest this please Jenkins

@dgarske dgarske merged commit 994a1fb into wolfSSL:master Mar 20, 2026
469 checks passed
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