Skip to content

Conversation

@bigbrett
Copy link
Contributor

@bigbrett bigbrett commented May 10, 2025

Upstream wolfSSL broke wolfHSM after it turned on curve25519 blinding by default, which requires setting RNG on key context for shared secret generation. Found out the hard way after updating wolfSSL to latest master. This PR fixes.

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

This PR fixes an issue with curve25519 shared secret generation by ensuring the key context has the proper RNG configured when blinding is enabled.

  • Conditionally sets the RNG on both private and public curve25519 keys under the WOLFSSL_CURVE25519_BLINDING flag.
  • Adjusts the order of key caching and shared secret generation to use the updated key contexts.

Copy link
Contributor

@billphipps billphipps left a comment

Choose a reason for hiding this comment

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

All good!

@billphipps billphipps merged commit 3f38041 into wolfSSL:main May 12, 2025
2 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.

2 participants