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>2013-06-17 15:34:08 +0400
committerDavid Hook <dgh@cryptoworkshop.com>2013-06-17 15:34:08 +0400
commit171fdf7d35fe6c58831a1249a5b1e519b201d5ea (patch)
tree92d1f71e76bb830170b851ac28258796f962768f /pg/src/test/java
parent839297b68360c38bc0adde563ab77469b2ebdead (diff)
minor update to include self-certification test
Diffstat (limited to 'pg/src/test/java')
-rw-r--r--pg/src/test/java/org/bouncycastle/openpgp/test/PGPECDSATest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/pg/src/test/java/org/bouncycastle/openpgp/test/PGPECDSATest.java b/pg/src/test/java/org/bouncycastle/openpgp/test/PGPECDSATest.java
index 6bb5bcac..103afe3a 100644
--- a/pg/src/test/java/org/bouncycastle/openpgp/test/PGPECDSATest.java
+++ b/pg/src/test/java/org/bouncycastle/openpgp/test/PGPECDSATest.java
@@ -52,8 +52,10 @@ public class PGPECDSATest
certification.init(new JcaPGPContentVerifierBuilderProvider().setProvider("BC"), pubKeyRing.getPublicKey());
- // TODO: it appears test key not self signed....
- System.err.print(certification.verifyCertification((String)pubKeyRing.getPublicKey().getUserIDs().next(), pubKeyRing.getPublicKey()));
+ if (!certification.verifyCertification((String)pubKeyRing.getPublicKey().getUserIDs().next(), pubKeyRing.getPublicKey()))
+ {
+ fail("self certification does not verify");
+ }
}
//