You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For BC-FJA 2.0.x, we discovered that the PKIX and PGP libraries use/import packages which are not exported by bc-fips-2.0.0.jar, when used as a Java 9+ module (org.bouncycastle.fips.core).
Specifically,
bcpkix-fips-2.0.7 does import org.bouncycastle.asn1.isara.IsaraObjectIdentifiers; in multiple places
bcpg-fips-2.0.9 (and likely 2.0.10) does import org.bouncycastle.asn1.cryptlib.CryptlibObjectIdentifiers; in multiple places
while neither org.bouncycastle.asn1.isara nor org.bouncycastle.asn1.cryptlib are in bc-fips-2.0.0.jar in META-INF\versions\9\module-info.class.
The obvious workaround that works for us, is to use --add-opens (--add-exports would presumably also work), to allow both org.bouncycastle.fips.core/org.bouncycastle.asn1.isara and org.bouncycastle.fips.core/org.bouncycastle.asn1.cryptlib to be used from our own module.
The text was updated successfully, but these errors were encountered:
For BC-FJA 2.0.x, we discovered that the PKIX and PGP libraries use/import packages which are not exported by bc-fips-2.0.0.jar, when used as a Java 9+ module (org.bouncycastle.fips.core).
Specifically,
import org.bouncycastle.asn1.isara.IsaraObjectIdentifiers;
in multiple placesimport org.bouncycastle.asn1.cryptlib.CryptlibObjectIdentifiers;
in multiple placeswhile neither
org.bouncycastle.asn1.isara
nororg.bouncycastle.asn1.cryptlib
are in bc-fips-2.0.0.jar in META-INF\versions\9\module-info.class.The obvious workaround that works for us, is to use
--add-opens
(--add-exports
would presumably also work), to allow bothorg.bouncycastle.fips.core/org.bouncycastle.asn1.isara
andorg.bouncycastle.fips.core/org.bouncycastle.asn1.cryptlib
to be used from our own module.The text was updated successfully, but these errors were encountered: