diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-08-16 13:30:13 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-08-16 13:30:13 +0200 |
commit | c1f9c5e4b5378f6c98f96e85ae82137c93f5009f (patch) | |
tree | 6553d7e87f7a53d0382f4614412dd5372db49d2e /OpenKeychain/src/main/java/org/sufficientlysecure | |
parent | 4d698c896a69148fbae4cccf7528ed9974449482 (diff) | |
download | open-keychain-c1f9c5e4b5378f6c98f96e85ae82137c93f5009f.tar.gz open-keychain-c1f9c5e4b5378f6c98f96e85ae82137c93f5009f.tar.bz2 open-keychain-c1f9c5e4b5378f6c98f96e85ae82137c93f5009f.zip |
Fix ElGamal key creation, SUBKEY_BINDING cert must use algo of master key
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java index 26ad69eb7..ccd83c334 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java @@ -933,7 +933,7 @@ public class PgpKeyOperation { } PGPContentSignerBuilder signerBuilder = new JcaPGPContentSignerBuilder( - pKey.getAlgorithm(), PGPUtil.SHA1) + masterPrivateKey.getPublicKeyPacket().getAlgorithm(), PGPUtil.SHA1) .setProvider(Constants.BOUNCY_CASTLE_PROVIDER_NAME); PGPSignatureGenerator sGen = new PGPSignatureGenerator(signerBuilder); sGen.init(PGPSignature.SUBKEY_BINDING, masterPrivateKey); |