Enum sequoia_openpgp::packet::prelude::Tag [−][src]
pub enum Tag {
}
Expand description
The OpenPGP packet tags as defined in Section 4.3 of RFC 4880.
The values correspond to the serialized format.
Variants
Reserved
Reserved Packet tag.
PKESK
Public-Key Encrypted Session Key Packet.
Signature
Signature Packet.
SKESK
Symmetric-Key Encrypted Session Key Packet.
OnePassSig
One-Pass Signature Packet.
SecretKey
Secret-Key Packet.
PublicKey
Public-Key Packet.
SecretSubkey
Secret-Subkey Packet.
CompressedData
Compressed Data Packet.
SED
Symmetrically Encrypted Data Packet.
Marker
Marker Packet (Obsolete Literal Packet).
Literal
Literal Data Packet.
Trust
Trust Packet.
UserID
User ID Packet.
PublicSubkey
Public-Subkey Packet.
UserAttribute
User Attribute Packet.
SEIP
Sym. Encrypted and Integrity Protected Data Packet.
MDC
Modification Detection Code Packet.
AED
AEAD Encrypted Data Packet.
This feature is experimental.
Unknown(u8)
Tuple Fields
0: u8
Unassigned packets (as of RFC4880).
Private(u8)
Tuple Fields
0: u8
Experimental packets.
Implementations
Returns whether the Tag
can be at the start of a valid
message.
Certs can start with PublicKey
, TSKs with a SecretKey
.
Messages start with a OnePassSig
, Signature
(old style
non-one pass signatures), PKESK
, SKESK
, CompressedData
,
or Literal
.
Signatures can standalone either as a detached signature, a third-party certification, or a revocation certificate.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl UnwindSafe for Tag
Blanket Implementations
Mutably borrows from an owned value. Read more