Skip to content

Fix to make sure wolfCrypt DRBG is used with crypto callbacks#498

Merged
aidangarske merged 1 commit intowolfSSL:masterfrom
dgarske:rng_use_wolf
Apr 29, 2026
Merged

Fix to make sure wolfCrypt DRBG is used with crypto callbacks#498
aidangarske merged 1 commit intowolfSSL:masterfrom
dgarske:rng_use_wolf

Conversation

@dgarske
Copy link
Copy Markdown
Member

@dgarske dgarske commented Apr 29, 2026

ZD 21476

@dgarske dgarske self-assigned this Apr 29, 2026
Copilot AI review requested due to automatic review settings April 29, 2026 14:55
Copy link
Copy Markdown

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

Note

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

Updates the RNG handling in the crypto callback so that, when configured, wolfCrypt’s DRBG can be used instead of the TPM RNG.

Changes:

  • Gate the TPM RNG path behind !WOLFTPM2_USE_WOLF_RNG so the callback can fall back to wolfCrypt DRBG when requested.
  • Add clarifying comments around the RNG fallback behavior.

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

Comment thread src/tpm2_cryptocb.c
@aidangarske aidangarske merged commit d095536 into wolfSSL:master Apr 29, 2026
128 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