Skip to content

Run FIPS CASTs once per process in WolfSSL() - #440

Merged
rlm2002 merged 2 commits into
wolfSSL:masterfrom
cconlon:fipsv5CASTFix
Oct 22, 2026
Merged

rlm2002 merged 2 commits into
wolfSSL:masterfrom
cconlon:fipsv5CASTFix

Conversation

@cconlon

@cconlon cconlon commented Oct 20, 2026

Copy link
Copy Markdown
Member

This PR fixes intermittent failures in FIPS builds when a WolfSSL object is created while other threads are using wolfCrypt.

WolfSSL() previously ran all FIPS CASTs in native init() every time it was called, which also meant every new WolfSSLProvider() called it. While a CAST reruns, the FIPS module marks it in process, so other threads using that algorithm fail at the same time. On FIPS v5.2.1 this puts the module in degraded mode, as seen in the FIPSv5 PRB run on #438.

@cconlon cconlon self-assigned this Oct 20, 2026
Copilot AI balanced review requested due to automatic review settings October 20, 2026 16:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #440

Scan targets checked: wolfssljni-src, wolfssljni-bugs
Coverage: 1 of 2 in-scope changed file(s) opened by the reviewer; not opened: src/test/com/wolfssl/test/WolfSSLTest.java

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

Review tier: Lite

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #440

Scan targets checked: wolfssljni-src, wolfssljni-bugs
Coverage: 1 of 1 in-scope changed file(s) opened by the reviewer

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

Review tier: Lite

@cconlon cconlon assigned wolfSSL-Bot and rlm2002 and unassigned cconlon Oct 20, 2026
@rlm2002
rlm2002 merged commit 3f48cae into wolfSSL:master Oct 22, 2026
109 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