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
1 changed files with 1 additions and 0 deletions

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;