diff --git a/demo-android/build.gradle b/demo-android/build.gradle index 4660811..c4c2110 100644 --- a/demo-android/build.gradle +++ b/demo-android/build.gradle @@ -30,7 +30,7 @@ android { dependencies { implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' - implementation 'org.bouncycastle:bcprov-jdk15on:1.60' + implementation 'org.bouncycastle:bcprov-jdk15on:1.65' implementation project(':android') diff --git a/lib/build.gradle b/lib/build.gradle index 8414710..c351d7a 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'java' apply plugin: 'maven' dependencies { - implementation 'org.bouncycastle:bcprov-jdk15on:1.60' + implementation 'org.bouncycastle:bcprov-jdk15on:1.65' } task sourcesJar(type: Jar, dependsOn: classes) { diff --git a/lib/src/main/java/im/status/keycard/globalplatform/Crypto.java b/lib/src/main/java/im/status/keycard/globalplatform/Crypto.java index 47b0763..b4b4758 100644 --- a/lib/src/main/java/im/status/keycard/globalplatform/Crypto.java +++ b/lib/src/main/java/im/status/keycard/globalplatform/Crypto.java @@ -61,7 +61,7 @@ public class Crypto { } catch (InvalidKeyException | IllegalBlockSizeException | BadPaddingException | InvalidAlgorithmParameterException e) { throw new RuntimeException("error generating session keys.", e); } catch (NoSuchProviderException e) { - throw new RuntimeException("SpongyCastle not installed"); + throw new RuntimeException("BouncyCastle not installed"); } }