#[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 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 HpkeModeId
impl Debug for HpkeModeId
Source§impl PartialEq for HpkeModeId
impl PartialEq for HpkeModeId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more