From e0457d6762b90078d65169b6b920910fc0d6e897 Mon Sep 17 00:00:00 2001
From: Adel El-Beik <adel.el-beik@r3.com>
Date: Thu, 3 Nov 2022 09:18:47 +0000
Subject: [PATCH] ENT-6993: Reverting back to BC 1.70.

---
 constants.properties            | 2 +-
 core-deterministic/build.gradle | 4 ++--
 core/build.gradle               | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/constants.properties b/constants.properties
index 383e011516..d716006f66 100644
--- a/constants.properties
+++ b/constants.properties
@@ -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.72
+bouncycastleVersion=1.70
 classgraphVersion=4.8.135
 disruptorVersion=3.4.2
 typesafeConfigVersion=1.3.4
diff --git a/core-deterministic/build.gradle b/core-deterministic/build.gradle
index b5db332a1e..dbf572f06d 100644
--- a/core-deterministic/build.gradle
+++ b/core-deterministic/build.gradle
@@ -49,8 +49,8 @@ dependencies {
 
     // These dependencies will become "runtime" scoped in our published POM.
     // See publish.dependenciesFrom.defaultScope.
-    deterministicLibraries "org.bouncycastle:bcprov-jdk15to18:$bouncycastle_version"
-    deterministicLibraries "org.bouncycastle:bcpkix-jdk15to18:$bouncycastle_version"
+    deterministicLibraries "org.bouncycastle:bcprov-jdk15on:$bouncycastle_version"
+    deterministicLibraries "org.bouncycastle:bcpkix-jdk15on:$bouncycastle_version"
     deterministicLibraries "net.i2p.crypto:eddsa:$eddsa_version"
 }
 
diff --git a/core/build.gradle b/core/build.gradle
index 3d117c5195..3939983353 100644
--- a/core/build.gradle
+++ b/core/build.gradle
@@ -73,8 +73,8 @@ dependencies {
     compile "net.i2p.crypto:eddsa:$eddsa_version"
 
     // Bouncy castle support needed for X509 certificate manipulation
-    compile "org.bouncycastle:bcprov-jdk15to18:${bouncycastle_version}"
-    compile "org.bouncycastle:bcpkix-jdk15to18:${bouncycastle_version}"
+    compile "org.bouncycastle:bcprov-jdk15on:${bouncycastle_version}"
+    compile "org.bouncycastle:bcpkix-jdk15on:${bouncycastle_version}"
 
     // JPA 2.2 annotations.
     compile "javax.persistence:javax.persistence-api:2.2"