Skip to content

Rust wrapper: rsa: update pss_check_padding() docs to not require set_rng() - #11384

Open
holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:f-10084
Open

Rust wrapper: rsa: update pss_check_padding() docs to not require set_rng()#11384
holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:f-10084

Conversation

@holtrop-wolfssl

Copy link
Copy Markdown
Contributor

Description

Rust wrapper: rsa: update pss_check_padding() docs to not require set_rng()

Fixes F-10084.

Testing

How did you test?

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@holtrop-wolfssl holtrop-wolfssl self-assigned this Sep 4, 2026
Copilot AI lite review requested due to automatic review settings September 4, 2026 20:44

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.

🟢 Approval recommended

The change is a documentation-only correction that matches the actual API behavior (no RNG/key dependency in wc_RsaPSS_CheckPadding).

Pull request overview

This PR updates the Rust wolfCrypt RSA wrapper documentation to clarify that RSA::pss_check_padding() does not require calling set_rng() beforehand (even when wolfSSL is built with WC_RSA_BLINDING enabled), aligning the docs with the underlying C API usage.

Changes:

  • Removed the doc note claiming set_rng() must be called before pss_check_padding() when WC_RSA_BLINDING is enabled.
File summaries
File Description
wrapper/rust/wolfssl-wolfcrypt/src/rsa.rs Removes an incorrect set_rng() prerequisite from pss_check_padding() rustdoc.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

3 participants