Struct pgp::packet::PublicKeyEncryptedSessionKey [−][src]
pub struct PublicKeyEncryptedSessionKey { /* fields omitted */ }
Expand description
Public Key Encrypted Session Key Packet https://tools.ietf.org/html/rfc4880.html#section-5.1
Implementations
Parses a PublicKeyEncryptedSessionKey
packet from the given slice.
pub fn from_session_key<R: CryptoRng + Rng>(
rng: &mut R,
session_key: &[u8],
alg: SymmetricKeyAlgorithm,
pkey: &impl PublicKeyTrait
) -> Result<Self>
pub fn from_session_key<R: CryptoRng + Rng>(
rng: &mut R,
session_key: &[u8],
alg: SymmetricKeyAlgorithm,
pkey: &impl PublicKeyTrait
) -> Result<Self>
Encrypts the given session key to the passed in public key.
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for PublicKeyEncryptedSessionKey
impl Sync for PublicKeyEncryptedSessionKey
impl Unpin for PublicKeyEncryptedSessionKey
impl UnwindSafe for PublicKeyEncryptedSessionKey
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self