No output stream for detached signatures, makes no sense to pipe it through
This commit is contained in:
1 parent
1c4b8c193d
commit
a87a45aa9a
2 files changed
+2
-3
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user