mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 10:19:39 +02:00
Fix comment block layout
This commit is contained in:
parent
2d0e4b4fc0
commit
3e867be780
1 changed files with 15 additions and 20 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue