Skip to content

Fix PostSignRequest#916

Open
yosuke-wolfssl wants to merge 1 commit intowolfSSL:masterfrom
yosuke-wolfssl:f_2861
Open

Fix PostSignRequest#916
yosuke-wolfssl wants to merge 1 commit intowolfSSL:masterfrom
yosuke-wolfssl:f_2861

Conversation

@yosuke-wolfssl
Copy link
Copy Markdown
Contributor

This PR changes the PostSignRequest so that the correct digestSz is passed to SignHashRsa().
Addressed in F_2861.

@yosuke-wolfssl yosuke-wolfssl self-assigned this Apr 14, 2026
Copilot AI review requested due to automatic review settings April 14, 2026 05:19
Copy link
Copy Markdown
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

Note

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

This PR adjusts PostSignRequest to compute and pass the correct digest size when hashing, so SignHashRsa() receives a correctly-sized digest (per F_2861).

Changes:

  • Derive digestSz from hashType via wc_HashGetDigestSize(hashType) before calling wc_Hash().

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

Copy link
Copy Markdown
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 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