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:
parent
6b9b956c2c
commit
26c804b2dd
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue