diff --git a/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/MessageMetadata.kt b/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/MessageMetadata.kt index 33e4c862..c1dfac93 100644 --- a/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/MessageMetadata.kt +++ b/pgpainless-core/src/main/kotlin/org/pgpainless/decryption_verification/MessageMetadata.kt @@ -24,10 +24,9 @@ import org.pgpainless.util.SessionKey /** View for extracting metadata about a [Message]. */ class MessageMetadata(val message: Message) { - // ################################################################################################################ - // ### Encryption - // ### - // ################################################################################################################ + // ########################################################################################################## + // Encryption + // ########################################################################################################## /** * The [SymmetricKeyAlgorithm] of the outermost encrypted data packet, or null if message is @@ -141,10 +140,9 @@ class MessageMetadata(val message: Message) { override fun getProperty(last: Layer) = last as EncryptedData } - // ################################################################################################################ - // ### Compression - // ### - // ################################################################################################################ + // ########################################################################################################## + // Compression + // ########################################################################################################## /** * [CompressionAlgorithm] of the outermost compressed data packet, or null, if the message does @@ -171,10 +169,9 @@ class MessageMetadata(val message: Message) { override fun getProperty(last: Layer) = last as CompressedData } - // ################################################################################################################ - // ### Signatures - // ### - // ################################################################################################################ + // ########################################################################################################## + // Signatures + // ########################################################################################################## val isUsingCleartextSignatureFramework: Boolean get() = message.cleartextSigned @@ -330,10 +327,9 @@ class MessageMetadata(val message: Message) { fun isVerifiedInlineSignedBy(keys: PGPKeyRing) = verifiedInlineSignatures.any { keys.matches(it.signingKey) } - // ################################################################################################################ - // ### Literal Data - // ### - // ################################################################################################################ + // ########################################################################################################## + // Literal Data + // ########################################################################################################## /** * Value of the literal data packet's filename field. This value can be used to store a @@ -397,10 +393,9 @@ class MessageMetadata(val message: Message) { return nested as LiteralData } - // ################################################################################################################ - // ### Message Structure - // ### - // ################################################################################################################ + // ########################################################################################################## + // Message Structure + // ########################################################################################################## interface Packet