diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml
index 782411c..4657f2b 100644
--- a/.github/workflows/analyze.yml
+++ b/.github/workflows/analyze.yml
@@ -5,7 +5,7 @@ jobs:
analyze:
runs-on: windows-latest
steps:
- - name: Set up JDK 11
+ - name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 11
diff --git a/PgpCore/PGP.cs b/PgpCore/PGP.cs
index 403f6a6..27d1641 100644
--- a/PgpCore/PGP.cs
+++ b/PgpCore/PGP.cs
@@ -5010,13 +5010,12 @@ private async Task OutputSignedAsync(FileInfo inputFile, Stream outputStream)
private async Task OutputSignedAsync(Stream inputStream, Stream outputStream,
string name)
{
- using (Stream compressedOut = ChainCompressedOut(outputStream))
+ Stream compressedOut = ChainCompressedOut(outputStream);
+
+ PgpSignatureGenerator signatureGenerator = InitSignatureGenerator(compressedOut);
+ using (Stream literalOut = ChainLiteralStreamOut(compressedOut, inputStream, name))
{
- PgpSignatureGenerator signatureGenerator = InitSignatureGenerator(compressedOut);
- using (Stream literalOut = ChainLiteralStreamOut(compressedOut, inputStream, name))
- {
- await WriteOutputAndSignAsync(compressedOut, literalOut, inputStream, signatureGenerator);
- }
+ await WriteOutputAndSignAsync(compressedOut, literalOut, inputStream, signatureGenerator);
}
}
diff --git a/PgpCore/PgpCore.csproj b/PgpCore/PgpCore.csproj
index 1c375d7..d557dc6 100644
--- a/PgpCore/PgpCore.csproj
+++ b/PgpCore/PgpCore.csproj
@@ -10,10 +10,10 @@
https://github.com/mattosaurus/PgpCore
https://github.com/mattosaurus/PgpCore
PGP .NET Core
- 5.13.0.0
+ 5.13.1.0
5.0.0.0
- 5.13.0
- v5.13.0 - Add prefered encryption key
+ 5.13.1
+ v5.13.1 - Don't dispose compressed output stream
MIT
true
true