Skip to content

benchmark: fix: extends guards for algo that needs them - #11090

Draft
rizlik wants to merge 1 commit into
wolfSSL:masterfrom
rizlik:global_rng_fixes
Draft

benchmark: fix: extends guards for algo that needs them#11090
rizlik wants to merge 1 commit into
wolfSSL:masterfrom
rizlik:global_rng_fixes

Conversation

@rizlik

@rizlik rizlik commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@rizlik rizlik self-assigned this Aug 6, 2026
Copilot AI lite review requested due to automatic review settings August 6, 2026 11:53

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

This PR updates wolfcrypt/benchmark/benchmark.c preprocessor guards so that the benchmark’s RNG setup, asymmetric benchmark enablement, and stats/usage code are correctly compiled when additional post-quantum algorithms are enabled (notably Falcon and FrodoKEM, plus SLH-DSA/XMSS in non-verify-only builds).

Changes:

  • Extend the bench_desc_words / related “needs RNG” guards to include HAVE_FALCON and WOLFSSL_HAVE_FRODOKEM.
  • Expand HAVE_LOCAL_RNG / BENCH_ASYM / bench_stats_asym_finish_ex conditions to cover Falcon, FrodoKEM, and SLH-DSA/XMSS when signing/keygen code is present.
  • Update Usage() output and CLI option matching guards to include FrodoKEM alongside other PQ asymmetric options.

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

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.

2 participants