1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-26 22:32:07 +01:00

Add comment about hash algorithm header

This commit is contained in:
Paul Schaub 2022-03-13 15:12:38 +01:00
parent 6b9b956c2c
commit 26c804b2dd
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -152,6 +152,7 @@ public final class EncryptionStream extends OutputStream {
private void prepareLiteralDataProcessing() throws IOException {
if (options.isCleartextSigned()) {
// Begin cleartext with hash algorithm of first signing method
SigningOptions.SigningMethod firstMethod = options.getSigningOptions().getSigningMethods().values().iterator().next();
armorOutputStream.beginClearText(firstMethod.getHashAlgorithm().getAlgorithmId());
return;