aboutsummaryrefslogtreecommitdiffstats
path: root/OpenPGP-Keychain
diff options
context:
space:
mode:
authorAshley Hughes <spirit.returned@gmail.com>2014-01-13 14:55:59 +0000
committerAshley Hughes <spirit.returned@gmail.com>2014-01-13 14:55:59 +0000
commit036480a210f0a2439a1c8dfbd06d32180fb26f8c (patch)
tree0c46fa5a791e05bce53b9a466e8bf0c35a9bf0e1 /OpenPGP-Keychain
parent71fd7574ec3e02375524db2d65d10e9781115e5c (diff)
downloadopen-keychain-036480a210f0a2439a1c8dfbd06d32180fb26f8c.tar.gz
open-keychain-036480a210f0a2439a1c8dfbd06d32180fb26f8c.tar.bz2
open-keychain-036480a210f0a2439a1c8dfbd06d32180fb26f8c.zip
small tidy
Diffstat (limited to 'OpenPGP-Keychain')
-rw-r--r--OpenPGP-Keychain/src/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java
index e07c802b7..225167fce 100644
--- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java
+++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java
@@ -378,7 +378,7 @@ public class PgpKeyOperation {
keyFlags |= KeyFlags.SIGN_DATA;
//cross-certify signing keys
PGPContentSignerBuilder signerBuilder = new JcaPGPContentSignerBuilder(
- subKey.getPublicKey().getAlgorithm(), PGPUtil.SHA1)
+ subPublicKey.getAlgorithm(), PGPUtil.SHA1)
.setProvider(Constants.BOUNCY_CASTLE_PROVIDER_NAME);
PGPSignatureGenerator sGen = new PGPSignatureGenerator(signerBuilder);
sGen.init(PGPSignature.PRIMARYKEY_BINDING, subPrivateKey);