Repository navigation
Run FIPS CASTs once per process in WolfSSL() - #440
Merged
Merged
Conversation
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
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
cconlon
force-pushed
the
fipsv5CASTFix
branch
from
October 20, 2026 18:11
4f8c0cd to
440d68e
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
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
rlm2002
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes intermittent failures in FIPS builds when a
WolfSSLobject is created while other threads are using wolfCrypt.WolfSSL()previously ran all FIPS CASTs in nativeinit()every time it was called, which also meant everynew 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.