Enum mls_rs_core::crypto::HpkeModeId
source · #[repr(u8)]pub enum HpkeModeId {
Base = 0,
Psk = 1,
Auth = 2,
AuthPsk = 3,
}
Expand description
Modes of HPKE operation.
Variants§
Base = 0
Base mode of HPKE for key exchange and AEAD cipher
Psk = 1
Base mode with a user provided PSK
Auth = 2
Authenticated variant that authenticates possession of a KEM private key.
AuthPsk = 3
Authenticated variant that authenticates possession of a PSK as well as a KEM private key.
Trait Implementations§
source§impl Clone for HpkeModeId
impl Clone for HpkeModeId
source§fn clone(&self) -> HpkeModeId
fn clone(&self) -> HpkeModeId
Returns a copy 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 HpkeModeId
impl Debug for HpkeModeId
source§impl PartialEq for HpkeModeId
impl PartialEq for HpkeModeId
source§fn eq(&self, other: &HpkeModeId) -> bool
fn eq(&self, other: &HpkeModeId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HpkeModeId
impl Eq for HpkeModeId
impl StructuralPartialEq for HpkeModeId
Auto Trait Implementations§
impl Freeze for HpkeModeId
impl RefUnwindSafe for HpkeModeId
impl Send for HpkeModeId
impl Sync for HpkeModeId
impl Unpin for HpkeModeId
impl UnwindSafe for HpkeModeId
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