1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-09 18:29:39 +02:00

Fix comment block layout

This commit is contained in:
Paul Schaub 2025-05-08 12:50:36 +02:00
parent 380191c35b
commit 02a997fb26
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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