Bouncy castle: How to get bcpkix-jdk15on-1.47.jar with debug information

I am trying to debug a problem with bouncy castle 1.47. I can find a debug jar for "bcprov", but not for {org.bouncycastle: bcpkix-jdk15on: 1.47: jar}.

Is there any other place to download bcpkix-jdk15on-1.47.jar with debugging information?

or

Is there a tool that can generate line numbers from jar (containing .class files) without line numbers, as well as generated sources for the same generated jar?

or

I tried to create jars from source code 1 , but the assembly cannot find test jars, which I assume from errors.

[javadoc] /tickets/bouncycastle/src-cvs/java/crypto/build/artifacts/jdk1.5/bcprov-jdk15on-147/src/org/bouncycastle/jce/provider/test/AllTests.java:5: package junit.framework does not exist [javadoc] import junit.framework.Test; [javadoc] ^ [javadoc] /tickets/bouncycastle/src-cvs/java/crypto/build/artifacts/jdk1.5/bcprov-jdk15on-147/src/org/bouncycastle/jce/provider/test/AllTests.java:6: package junit.framework does not exist [javadoc] import junit.framework.TestCase; [javadoc] ^ [javadoc] /tickets/bouncycastle/src-cvs/java/crypto/build/artifacts/jdk1.5/bcprov-jdk15on-147/src/org/bouncycastle/jce/provider/test/AllTests.java:7: package junit.framework does not exist [javadoc] import junit.framework.TestSuite; 

Any help is appreciated.

+4
source share
2 answers

I managed to create a jar with debug information from a sophisticated source of the castle.

in ROOT_SRC / bc-build.properties, set release release.debug to true

 release.suffix: 147 release.name: 1.47 release.debug: true 

In the assembly, mail (the sun implementation) and junit jars are expected to be available in the classpath. I put them in jdk / jre / lib / ext and the job worked. artifacts were generated in the ROOT_SRC / build directory.

+6
source

Instead of bcprov-jdk15on your own assembly, you can exclude bcprov-jdk15on and explicitly push the bcprov-debug-jdk15on artifact bcprov-debug-jdk15on by debugging.

Maven configuration example:

 <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcpkix-jdk15on</artifactId> <version>${bouncycastle.version}</version> <exclusions> <exclusion> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk15on</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-debug-jdk15on</artifactId> <version>${bouncycastle.version}</version> </dependency> 

This will allow you to debug invigorating things.

0
source

Source: https://habr.com/ru/post/1439790/


All Articles