diff options
author | David Hook <dgh@cryptoworkshop.com> | 2013-11-23 07:01:59 +0400 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2013-11-23 07:01:59 +0400 |
commit | 214d6ae1a64c8e50699c100731d32b4d55c2c4a8 (patch) | |
tree | 78564eebe382a8beb166344c9378743be3458592 /pg/src/test/java/org/bouncycastle/openpgp/test/PGPRSATest.java | |
parent | a23b7145c24d31554dbfc4d706366f28c7445fb0 (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.java | 2 |
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()) { |