Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2014-07-24 14:50:33 +0400
committerDavid Hook <dgh@cryptoworkshop.com>2014-07-24 14:50:33 +0400
commit95ecbee1a86584a8c2d73ef17af088eaf4c90620 (patch)
treee501fe3ea43c23434884b59684ec546cf29fe924
parent1a935dbbf410a3cc65202ff0fe7d0bfdcc1da7a8 (diff)
Earlier JDK compatibility updates
-rw-r--r--prov/src/test/java/org/bouncycastle/jce/provider/test/ECDSA5Test.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/prov/src/test/java/org/bouncycastle/jce/provider/test/ECDSA5Test.java b/prov/src/test/java/org/bouncycastle/jce/provider/test/ECDSA5Test.java
index 8a478717..87773da8 100644
--- a/prov/src/test/java/org/bouncycastle/jce/provider/test/ECDSA5Test.java
+++ b/prov/src/test/java/org/bouncycastle/jce/provider/test/ECDSA5Test.java
@@ -811,7 +811,18 @@ public class ECDSA5Test
throws Exception
{
testCustomNamedCurveSigning("secp256r1");
- testCustomNamedCurveSigning("secp256k1");
+
+ try
+ {
+ testCustomNamedCurveSigning("secp256k1");
+ }
+ catch (IllegalArgumentException e)
+ {
+ if (!e.getMessage().equals("first coefficient is negative")) // bogus jdk 1.5 exception...
+ {
+ throw e;
+ }
+ }
}
private void testCustomNamedCurveSigning(String name)