From 801766ce044267c51f6d2fed914a6495148a8c3a Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Wed, 30 Jul 2025 13:25:09 +0200 Subject: [PATCH] Checkstyle issues --- .../decryption_verification/OpenPgpMessageInputStream.kt | 1 - .../bouncycastle/fuzzing/PGPObjectFactoryFuzzingTest.kt | 4 ++-- .../src/main/kotlin/org/pgpainless/sop/ArmorImpl.kt | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/OpenPgpMessageInputStream.kt b/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/OpenPgpMessageInputStream.kt index 8135ac3a..ead80090 100644 --- a/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/OpenPgpMessageInputStream.kt +++ b/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/OpenPgpMessageInputStream.kt @@ -350,7 +350,6 @@ class OpenPgpMessageInputStream( if (!encDataList.isIntegrityProtected && !encDataList.isEmpty && !encDataList.get(0).isAEAD) { - LOGGER.warn("Symmetrically Encrypted Data Packet is not integrity-protected.") if (!options.isIgnoreMDCErrors()) { throw MessageNotIntegrityProtectedException() diff --git a/pgpainless-core/src/test/kotlin/org/pgpainless/bouncycastle/fuzzing/PGPObjectFactoryFuzzingTest.kt b/pgpainless-core/src/test/kotlin/org/pgpainless/bouncycastle/fuzzing/PGPObjectFactoryFuzzingTest.kt index 05216f44..9a578c4f 100644 --- a/pgpainless-core/src/test/kotlin/org/pgpainless/bouncycastle/fuzzing/PGPObjectFactoryFuzzingTest.kt +++ b/pgpainless-core/src/test/kotlin/org/pgpainless/bouncycastle/fuzzing/PGPObjectFactoryFuzzingTest.kt @@ -6,13 +6,13 @@ package org.pgpainless.bouncycastle.fuzzing import com.code_intelligence.jazzer.api.FuzzedDataProvider import com.code_intelligence.jazzer.junit.FuzzTest +import java.io.EOFException +import java.io.IOException import org.bouncycastle.bcpg.ArmoredInputException import org.bouncycastle.bcpg.UnsupportedPacketVersionException import org.bouncycastle.openpgp.PGPException import org.bouncycastle.openpgp.PGPUtil import org.bouncycastle.openpgp.bc.BcPGPObjectFactory -import java.io.EOFException -import java.io.IOException class PGPObjectFactoryFuzzingTest { diff --git a/pgpainless-sop/src/main/kotlin/org/pgpainless/sop/ArmorImpl.kt b/pgpainless-sop/src/main/kotlin/org/pgpainless/sop/ArmorImpl.kt index 8614007c..fc03e8a8 100644 --- a/pgpainless-sop/src/main/kotlin/org/pgpainless/sop/ArmorImpl.kt +++ b/pgpainless-sop/src/main/kotlin/org/pgpainless/sop/ArmorImpl.kt @@ -28,7 +28,6 @@ class ArmorImpl(private val api: PGPainless) : Armor { val bufferedOutputStream = BufferedOutputStream(outputStream) // Determine the nature of the given data - val openPgpIn = OpenPGPAnimalSnifferInputStream(data, false).apply { try {