mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-23 04:42:06 +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 {
|
private void prepareLiteralDataProcessing() throws IOException {
|
||||||
if (options.isCleartextSigned()) {
|
if (options.isCleartextSigned()) {
|
||||||
|
// Begin cleartext with hash algorithm of first signing method
|
||||||
SigningOptions.SigningMethod firstMethod = options.getSigningOptions().getSigningMethods().values().iterator().next();
|
SigningOptions.SigningMethod firstMethod = options.getSigningOptions().getSigningMethods().values().iterator().next();
|
||||||
armorOutputStream.beginClearText(firstMethod.getHashAlgorithm().getAlgorithmId());
|
armorOutputStream.beginClearText(firstMethod.getHashAlgorithm().getAlgorithmId());
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue