Add buffer to improve encryption performance

This commit is contained in:
Paul Schaub 2022-06-21 19:48:49 +02:00
parent 8d1794544a
commit e5ba4f9933
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ public final class EncryptionStream extends OutputStream {
return;
}
// ArmoredOutputStream better be buffered
outermostStream = new BufferedOutputStream(outermostStream);
LOGGER.debug("Wrap encryption output in ASCII armor");
armorOutputStream = ArmoredOutputStreamFactory.get(outermostStream);
if (options.hasComment()) {