pub enum PlainSessionKey {
V3_4 {
sym_alg: SymmetricKeyAlgorithm,
key: Vec<u8>,
},
V5 {
key: Vec<u8>,
},
V6 {
key: Vec<u8>,
},
}
Expand description
Decrypted session key.
A v3/v4 session key can be used v1 SEIPD (and historically with SED packets). A v6 session key can only be used with a v2 SEIPD.
https://www.rfc-editor.org/rfc/rfc9580.html#name-packet-versions-in-encrypte
(Note that SED packets are malleable. They are historical and considered dangerous! They MUST NOT be produced and decryption is also discouraged: https://www.rfc-editor.org/rfc/rfc9580.html#sed)
Variants§
V3_4
A session key from a v3 PKESK or a v4 SKESK
(Note: for historical reasons, the OpenPGP format doesn’t specify a v4 PKESK or a V3 SKESK)
V5
V6
A session key from a v6 PKESK or a v6 SKESK
Trait Implementations§
Source§impl Clone for PlainSessionKey
impl Clone for PlainSessionKey
Source§fn clone(&self) -> PlainSessionKey
fn clone(&self) -> PlainSessionKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PlainSessionKey
impl Debug for PlainSessionKey
Source§impl Drop for PlainSessionKey
impl Drop for PlainSessionKey
Source§impl PartialEq for PlainSessionKey
impl PartialEq for PlainSessionKey
Source§impl Zeroize for PlainSessionKey
impl Zeroize for PlainSessionKey
impl Eq for PlainSessionKey
impl StructuralPartialEq for PlainSessionKey
Auto Trait Implementations§
impl Freeze for PlainSessionKey
impl RefUnwindSafe for PlainSessionKey
impl Send for PlainSessionKey
impl Sync for PlainSessionKey
impl Unpin for PlainSessionKey
impl UnwindSafe for PlainSessionKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more