Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spongify/2022 01 25 #58

Open
wants to merge 3,661 commits into
base: spongy-master
Choose a base branch
from

Conversation

Erhannis
Copy link

@Erhannis Erhannis commented Feb 2, 2022

I spongified the most recent version of BouncyCastle. The old version didn't merge very well, so I tried to redo what was done to the old version. I think it worked - it works in the app I was building. Do you want to merge this somehow?

peterdettman and others added 30 commits July 21, 2021 23:50
dghgit and others added 30 commits November 27, 2021 22:37
These are some of the files/dirs (that you wouldn't want to check-in to
source-control) that I see after getting the gradle-build going:
On Android, the dependencies make supporting bc-mail very hard.

Previously I did an rm -Rf on the 'mail' folder of bc, but actually,
just removing the include from settings is way more Git-friendly for
rebasing.
These tests fail:

* BasicClientAuthTlsTest.testClientAuthTlsConnection
* BasicTlsTest.testBasicTlsConnection

...seems to be due to a provider-lookup failure
…Java 8

The Bouncy Castle project has dozens of javadoc errors which doclint
tolerated under Java 7 but are now fatal under Java 8. When releasing to
Maven Central (using `gradle uploadArchives`) the `javadoc` task gets run,
and will fail when running under Java 8, blocking the release.

The solution here was taken from Stephen Colebourne's blog:

http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html

See also:

http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#quiet

Several of the javadoc errors in Bouncy Castle are valid - for instance:

```
core/src/main/java/org/bouncycastle/pqc/crypto/mceliece/McElieceCipher.java:160:
error: exception not thrown: java.lang.Exception
     * @throws Exception if the cipher text is invalid.
```

You can quickly see these by running `gradle javadoc` under Java 8.
…tle class

The error was for the `org.bouncycastle.jce.provider.JCERSAPublicKey`
class:

```
junit.framework.AssertionFailedError: Serialisation: Exception: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.JCERSAPublicKey
	at junit.framework.Assert.fail(Assert.java:57)
	at junit.framework.TestCase.fail(TestCase.java:227)
	at org.spongycastle.jce.provider.test.AllTests$SimpleTestTest.testJCE(AllTests.java:46)

```
…ed a few of the tests that dealt with serialization; didn't like the class packages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants