#[repr(u16)]pub enum KdfAlgorithm {
HkdfSha256 = 1,
HkdfSha384 = 2,
HkdfSha512 = 3,
}
Expand description
KDF types Value are taken from the HPKE RFC (not published yet) TODO: update when HPKE has been published and values have been registered with IANA.
Variants§
Trait Implementations§
Source§impl Clone for KdfAlgorithm
impl Clone for KdfAlgorithm
Source§fn clone(&self) -> KdfAlgorithm
fn clone(&self) -> KdfAlgorithm
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 KdfAlgorithm
impl Debug for KdfAlgorithm
Source§impl Display for KdfAlgorithm
impl Display for KdfAlgorithm
Source§impl From<KemAlgorithm> for KdfAlgorithm
impl From<KemAlgorithm> for KdfAlgorithm
Source§fn from(kem: KemAlgorithm) -> Self
fn from(kem: KemAlgorithm) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KdfAlgorithm
impl PartialEq for KdfAlgorithm
Source§impl TryFrom<u16> for KdfAlgorithm
impl TryFrom<u16> for KdfAlgorithm
impl Copy for KdfAlgorithm
impl Eq for KdfAlgorithm
impl StructuralPartialEq for KdfAlgorithm
Auto Trait Implementations§
impl Freeze for KdfAlgorithm
impl RefUnwindSafe for KdfAlgorithm
impl Send for KdfAlgorithm
impl Sync for KdfAlgorithm
impl Unpin for KdfAlgorithm
impl UnwindSafe for KdfAlgorithm
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