From 0bafc410a02f1a6b807292654bc09108206b0004 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 5 Sep 2022 15:41:58 +0200 Subject: [PATCH] Add missing parseAndCombineSignatures call For some reason this was missing from the single-byte read() method of the SignatureInputStream, causing issues if draining the stream byte by byte --- .../pgpainless/decryption_verification/SignatureInputStream.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/SignatureInputStream.java b/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/SignatureInputStream.java index 33e6139b..42ca4dc9 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/SignatureInputStream.java +++ b/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/SignatureInputStream.java @@ -67,6 +67,7 @@ public abstract class SignatureInputStream extends FilterInputStream { final int data = super.read(); final boolean endOfStream = data == -1; if (endOfStream) { + parseAndCombineSignatures(); verifyOnePassSignatures(); verifyDetachedSignatures(); } else {