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-11-23 07:01:59 +0400
committerDavid Hook <dgh@cryptoworkshop.com>2013-11-23 07:01:59 +0400
commit214d6ae1a64c8e50699c100731d32b4d55c2c4a8 (patch)
tree78564eebe382a8beb166344c9378743be3458592 /pg/src/test/java/org/bouncycastle/openpgp/test/PGPRSATest.java
parenta23b7145c24d31554dbfc4d706366f28c7445fb0 (diff)
added some extra tests on revocation, added some signature type checking to PGPSignatureGenerator.
Diffstat (limited to 'pg/src/test/java/org/bouncycastle/openpgp/test/PGPRSATest.java')
-rw-r--r--pg/src/test/java/org/bouncycastle/openpgp/test/PGPRSATest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/pg/src/test/java/org/bouncycastle/openpgp/test/PGPRSATest.java b/pg/src/test/java/org/bouncycastle/openpgp/test/PGPRSATest.java
index a61681c6..41fa6c10 100644
--- a/pg/src/test/java/org/bouncycastle/openpgp/test/PGPRSATest.java
+++ b/pg/src/test/java/org/bouncycastle/openpgp/test/PGPRSATest.java
@@ -807,7 +807,7 @@ public class PGPRSATest
keySigGen.setHashedSubpackets(svg.generate());
- pKey = PGPPublicKey.addCertification(pKey, keySigGen.generateCertification(pKey));
+ pKey = PGPPublicKey.addCertification(pKey, pKey.isMasterKey() ? keySigGen.generateCertification(pKey) : keySigGen.generateCertification(sgnKeyPair.getPublicKey(), pKey));
if (pKey.isEncryptionKey())
{