ENT-10273: Upgrade BC to 1.75. (#7422)

* ENT-10273: Upgrade BC to 1.75.

* Use BC 1.70 for core-deterministic avoid issue with primality checking done in 1.70+ which uses random numbers

---------

Co-authored-by: Shams Asari <shams.asari@r3.com>
This commit is contained in:
Adel El-Beik 2023-07-31 10:42:28 +01:00 committed by GitHub
parent 6ec8855c6e
commit 106ccd7fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -24,7 +24,7 @@ jdkClassifier11=jdk11
dockerJavaVersion=3.2.5
proguardVersion=6.1.1
// bouncy castle version must not be changed on a patch release. Needs a full release test cycle to flush out any issues.
bouncycastleVersion=1.70
bouncycastleVersion=1.75
classgraphVersion=4.8.135
disruptorVersion=3.4.2
typesafeConfigVersion=1.3.4

View File

@ -49,9 +49,10 @@ dependencies {
// These dependencies will become "runtime" scoped in our published POM.
// See publish.dependenciesFrom.defaultScope.
deterministicLibraries "org.bouncycastle:bcprov-jdk15on:$bouncycastle_version"
deterministicLibraries "org.bouncycastle:bcpkix-jdk15on:$bouncycastle_version"
deterministicLibraries "net.i2p.crypto:eddsa:$eddsa_version"
// From 1.71 BC validates the RSA modulus is prime using random numbers, which is not supported inside the DJVM
deterministicLibraries "org.bouncycastle:bcprov-jdk15on:1.70"
deterministicLibraries "org.bouncycastle:bcpkix-jdk15on:1.70"
}
tasks.named('jar', Jar) {

View File

@ -73,8 +73,8 @@ dependencies {
compile "net.i2p.crypto:eddsa:$eddsa_version"
// Bouncy castle support needed for X509 certificate manipulation
compile "org.bouncycastle:bcprov-jdk15on:${bouncycastle_version}"
compile "org.bouncycastle:bcpkix-jdk15on:${bouncycastle_version}"
compile "org.bouncycastle:bcprov-jdk18on:${bouncycastle_version}"
compile "org.bouncycastle:bcpkix-jdk18on:${bouncycastle_version}"
// JPA 2.2 annotations.
compile "javax.persistence:javax.persistence-api:2.2"