mirrored from https://www.bouncycastle.org/repositories/bc-java
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
There's no bcpqc-fips 2.1.10 JAR available, but if you're loading bcpkix-fips 2.1.10 into an OSGi application it'll attempt to resolve org.bouncycastle.pqc.jcajce.spec and fail.
To reproduce using a FIPS java and Apache Felix:
bash-5.3# curl -LO https://downloads.apache.org/felix/org.apache.felix.main.distribution-7.0.5.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2.60M 100 2.60M 0 0 1.48M 0 00:01 00:01 100.5k
bash-5.3# tar -xzf org.apache.felix.main.distribution-7.0.5.tar.gz
bash-5.3# cd felix-framework-7.0.5
bash-5.3# java -jar bin/felix.jar
NOTE: Picked up JDK_JAVA_OPTIONS: --add-exports=java.base/sun.security.internal.spec=ALL-UNNAMED --add-exports=java.base/sun.security.provider=ALL-UNNAMED -Djavax.net.ssl.trustStoreType=FIPS
Picked up JAVA_TOOL_OPTIONS: --module-path=/usr/share/java/bouncycastle-fips
____________________________
Welcome to Apache Felix Gogo
g! felix:install file:/usr/share/java/bouncycastle-fips/bc-fips.jar 07:15:30
Bundle ID: 7
g! felix:start 7 07:15:43
g! felix:install file:/usr/share/java/bouncycastle-fips/bcutil-fips.jar 07:15:49
Bundle ID: 8
g! felix:start 8 07:15:54
g! felix:install file:/usr/share/java/bouncycastle-fips/bcpkix-fips.jar 07:15:56
Bundle ID: 9
g! felix:start 9 07:16:03
org.osgi.framework.BundleException: Unable to resolve bcpkix [9](R 9.0): missing requirement [bcpkix [9](R 9.0)] osgi.wiring.package; (&(osgi.wiring.package=org.bouncycastle.pqc.jcajce.spec)(version>=2.1.0)(!(version>=2.2.0))) Unresolved requirements: [[bcpkix [9](R 9.0)] osgi.wiring.package; (&(osgi.wiring.package=org.bouncycastle.pqc.jcajce.spec)(version>=2.1.0)(!(version>=2.2.0)))]if you unzip the bcpkix-fips JAR file:
bash-5.3# grep pqc ./META-INF/versions/9/OSGI-INF/MANIFEST.MF ./META-INF/MANIFEST.MF
./META-INF/versions/9/OSGI-INF/MANIFEST.MF: 0)",org.bouncycastle.pqc.jcajce.spec;version="[2.1.0,2.2.0)",org.boun
./META-INF/MANIFEST.MF: 0)",org.bouncycastle.pqc.jcajce.spec;version="[2.1.0,2.2.0)",org.bounReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels