pub enum PkeskBytes {
Rsa {
mpi: Mpi,
},
Elgamal {
first: Mpi,
second: Mpi,
},
Ecdh {
public_point: Mpi,
encrypted_session_key: Vec<u8>,
},
X25519 {
ephemeral: [u8; 32],
session_key: Vec<u8>,
sym_alg: Option<SymmetricKeyAlgorithm>,
},
X448 {
ephemeral: [u8; 56],
session_key: Vec<u8>,
sym_alg: Option<SymmetricKeyAlgorithm>,
},
Other,
}
Expand description
Values comprising a Public Key Encrypted Session Key
Variants§
Rsa
Elgamal
Ecdh
X25519
Fields
§
sym_alg: Option<SymmetricKeyAlgorithm>
Set for v3 PKESK only (the sym_alg is not encrypted with the session key for X25519)
X448
Fields
§
sym_alg: Option<SymmetricKeyAlgorithm>
Set for v3 PKESK only (the sym_alg is not encrypted with the session key for X448)
Other
Trait Implementations§
Source§impl Clone for PkeskBytes
impl Clone for PkeskBytes
Source§fn clone(&self) -> PkeskBytes
fn clone(&self) -> PkeskBytes
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 PkeskBytes
impl Debug for PkeskBytes
Source§impl PartialEq for PkeskBytes
impl PartialEq for PkeskBytes
impl Eq for PkeskBytes
impl StructuralPartialEq for PkeskBytes
Auto Trait Implementations§
impl Freeze for PkeskBytes
impl RefUnwindSafe for PkeskBytes
impl Send for PkeskBytes
impl Sync for PkeskBytes
impl Unpin for PkeskBytes
impl UnwindSafe for PkeskBytes
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