diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-01-08 14:57:09 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-01-08 14:57:09 +0100 |
commit | a87a45aa9abd00bb78c42ab11c8da007b892369d (patch) | |
tree | 31f54e5d6c43c8d9d6676800ef3c92c635aad0d8 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain | |
parent | 1c4b8c193d35f2226d621aa448e6775ff49fa2c6 (diff) | |
download | open-keychain-a87a45aa9abd00bb78c42ab11c8da007b892369d.tar.gz open-keychain-a87a45aa9abd00bb78c42ab11c8da007b892369d.tar.bz2 open-keychain-a87a45aa9abd00bb78c42ab11c8da007b892369d.zip |
No output stream for detached signatures, makes no sense to pipe it through
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpSignEncrypt.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpSignEncrypt.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpSignEncrypt.java index 5151667ed..3c6c86338 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpSignEncrypt.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpSignEncrypt.java @@ -543,8 +543,7 @@ public class PgpSignEncrypt extends BaseOperation { int length; byte[] buffer = new byte[1 << 16]; while ((length = in.read(buffer)) > 0) { - // pipe input stream directly into output stream, no changes to data - mOutStream.write(buffer, 0, length); + // no output stream is written, no changed to original data! signatureGenerator.update(buffer, 0, length); |