Skip to content

Testing: Guard RSA OversizedModulus test result by FIPS version#10779

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
lealem47:guard_rsa_modulus_test
Jun 25, 2026
Merged

Testing: Guard RSA OversizedModulus test result by FIPS version#10779
dgarske merged 1 commit into
wolfSSL:masterfrom
lealem47:guard_rsa_modulus_test

Conversation

@lealem47

Copy link
Copy Markdown
Contributor

Description

FIPS < v7 returns RSA_OUT_OF_RANGE_E on an Oversized Modulus

Testing

./configure --enable-fips=v5 --enable-sp-math-all now passes unit tests

Checklist

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

Copilot AI review requested due to automatic review settings June 25, 2026 14:22
@lealem47 lealem47 removed their assignment Jun 25, 2026

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 the RSA API unit test expectations to account for differing error codes returned by FIPS modules prior to v7 when exercising the “oversized modulus” path, keeping the test suite passing across FIPS versions (notably --enable-fips=v5).

Changes:

  • Conditionally expect RSA_OUT_OF_RANGE_E instead of WC_KEY_SIZE_E for FIPS versions < 7.0 in the oversized modulus test case.
  • Preserve the existing expectation (WC_KEY_SIZE_E) for non-FIPS builds and FIPS >= 7.0.

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

@dgarske dgarske merged commit 039e97d into wolfSSL:master Jun 25, 2026
311 of 411 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.

5 participants