enum LabeledSuiteId {
Hpke(HpkeSuite),
Kem(HpkeKem),
}
Expand description
LabeledSuiteId describes the possible suite ID values for use with labeled_extract_for_expand and labeled_expand.
Variants§
Implementations§
Source§impl LabeledSuiteId
impl LabeledSuiteId
Sourcefn encoded(&self) -> Vec<u8>
fn encoded(&self) -> Vec<u8>
The suite ID encoding depends on the context of use. In the general HPKE context, we use a “HPKE” prefix and encode the entire ciphersuite. In the KEM context we use a “KEM” prefix and only encode the KEM ID.
See the bottom of RFC 9180 §4 for more information.
Trait Implementations§
Source§impl Clone for LabeledSuiteId
impl Clone for LabeledSuiteId
Source§fn clone(&self) -> LabeledSuiteId
fn clone(&self) -> LabeledSuiteId
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 LabeledSuiteId
impl Debug for LabeledSuiteId
impl Copy for LabeledSuiteId
Auto Trait Implementations§
impl Freeze for LabeledSuiteId
impl RefUnwindSafe for LabeledSuiteId
impl Send for LabeledSuiteId
impl Sync for LabeledSuiteId
impl Unpin for LabeledSuiteId
impl UnwindSafe for LabeledSuiteId
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