Enum sequoia_openpgp::packet::SKESK [−][src]
Expand description
Holds a symmetrically encrypted session key.
The session key is used to decrypt the actual ciphertext, which is typically stored in a SEIP or AED packet. See Section 5.3 of RFC 4880 for details.
An SKESK packet is not normally instantiated directly. In most
cases, you’ll create one as a side-effect of encrypting a message
using the streaming serializer, or parsing an encrypted message
using the PacketParser
.
Note: This enum cannot be exhaustively matched to allow future extensions.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
V4(SKESK4)
SKESK packet version 4.
V5(SKESK5)
SKESK packet version 5.
This feature is experimental.
Implementations
Derives the key inside this SKESK from password
. Returns a
tuple of the symmetric cipher to use with the key and the key
itself.
Trait Implementations
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
Reads from the given reader.
Auto Trait Implementations
impl RefUnwindSafe for SKESK
impl UnwindSafe for SKESK
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self