Skip to content

Commit

Permalink
JNI/JSSE: call wolfSSL_Init() in WolfObject init() before running FIP…
Browse files Browse the repository at this point in the history
…S CASTs
  • Loading branch information
cconlon committed Jan 23, 2025
1 parent 177dd90 commit 85dafaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/wolfssl/wolfcrypt/WolfObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ public class WolfObject {
/* Load wolfcryptjni library */
System.loadLibrary("wolfcryptjni");

/* initialize native wolfCrypt library */
init();

/* Run FIPS CAST if we are in FIPS mode. Will only forcefully
* be run once - Fips class keeps track of a successful run. */
if (Fips.enabled) {
Fips.runAllCast_fips();
}

/* initialize native wolfCrypt library */
init();
}

/**
Expand Down

0 comments on commit 85dafaf

Please sign in to comment.