Skip to content

Commit 15a8edd

Browse files
committed
JNI: clarify FIPS CAST comment in WolfObject static initializer
1 parent e84ba03 commit 15a8edd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/com/wolfssl/wolfcrypt/WolfObject.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ public static boolean isLibraryLoadSkipped() {
100100
/* Initialize native wolfCrypt library */
101101
init();
102102

103-
/* Run FIPS CAST if we are in FIPS mode. Will only forcefully
104-
* be run once - Fips class keeps track of a successful run. */
103+
/* Run FIPS CAST if we are in FIPS mode. Will only forcefully be run
104+
* once. Fips class keeps track of a successful run. References Fips
105+
* (a subclass) during WolfObject static init, but is safe because
106+
* native libraries and init() have completed above. */
105107
if (Fips.enabled) {
106108
Fips.runAllCast_fips();
107109
}

0 commit comments

Comments
 (0)