Enum mls_rs_crypto_traits::KdfId
source · #[non_exhaustive]#[repr(u16)]pub enum KdfId {
HkdfSha256 = 1,
HkdfSha384 = 2,
HkdfSha512 = 3,
}
Expand description
Aead KDF as specified in RFC 9180, Table 3.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl KdfId
impl KdfId
pub fn new(cipher_suite: CipherSuite) -> Option<Self>
pub fn extract_size(&self) -> usize
Trait Implementations§
source§impl PartialEq for KdfId
impl PartialEq for KdfId
impl Copy for KdfId
impl Eq for KdfId
impl StructuralPartialEq for KdfId
Auto Trait Implementations§
impl Freeze for KdfId
impl RefUnwindSafe for KdfId
impl Send for KdfId
impl Sync for KdfId
impl Unpin for KdfId
impl UnwindSafe for KdfId
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