Enum sequoia_openpgp::packet::SKESK [−][src]
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)
V4(SKESK4)
SKESK packet version 4.
V5(SKESK5)
SKESK packet version 5.
This feature is experimental.
Implementations
impl SKESK
[src]
impl SKESK
[src]pub fn decrypt(
&self,
password: &Password
) -> Result<(SymmetricAlgorithm, SessionKey)>
[src]
pub fn decrypt(
&self,
password: &Password
) -> Result<(SymmetricAlgorithm, SessionKey)>
[src]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
impl IntoIterator for SKESK
[src]
impl IntoIterator for SKESK
[src]Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
impl MarshalInto for SKESK
[src]
impl MarshalInto for SKESK
[src]impl<'a> Parse<'a, SKESK> for SKESK
[src]
impl<'a> Parse<'a, SKESK> for SKESK
[src]impl Eq for SKESK
[src]
impl StructuralEq for SKESK
[src]
impl StructuralPartialEq for SKESK
[src]
Auto Trait Implementations
impl RefUnwindSafe for SKESK
impl Send for SKESK
impl Sync for SKESK
impl Unpin for SKESK
impl UnwindSafe for SKESK
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more