#[repr(u8)]pub enum KdfLabelKind {
Show 34 variants
Joiner,
Welcome,
Epoch,
Init,
SenderData,
Encryption,
Exported,
Exporter,
External,
Confirm,
Membership,
Resumption,
Authentication,
Application,
Handshake,
Tree,
Nonce,
Key,
Secret,
Path,
Node,
DerivedPsk,
TargetedMessagePsk,
TargetedMessageSenderAuthData,
AssociatedPartyKeyScheduleEpochSecret,
AssociatedPartyKeyScheduleExporterSecret,
AssociatedPartyEpochSecret,
AssociatedPartySecret,
AssociatedPartyCommitSecret,
AssociatedPartyCommitSecretId,
AssociatedPartyCommitBaseSecret,
HpqMlsExport,
ApplicationExport {
component_id: ComponentId,
label: String,
},
Arbitrary(String),
}
Expand description
Labels for MLS KDF derivations (i.e. domain separation)
Variants§
Joiner
Welcome
Epoch
Init
SenderData
Encryption
Exported
Exporter
External
Confirm
Membership
Resumption
Authentication
Application
Handshake
Tree
Nonce
Key
Secret
Path
Node
DerivedPsk
TargetedMessagePsk
Available on crate feature
draft-ietf-mls-extensions
only.TargetedMessageSenderAuthData
Available on crate feature
draft-ietf-mls-extensions
only.AssociatedPartyKeyScheduleEpochSecret
Available on crate feature
draft-kohbrok-mls-associated-parties
only.AssociatedPartyKeyScheduleExporterSecret
Available on crate feature
draft-kohbrok-mls-associated-parties
only.AssociatedPartyEpochSecret
Available on crate feature
draft-kohbrok-mls-associated-parties
only.AssociatedPartySecret
Available on crate feature
draft-kohbrok-mls-associated-parties
only.AssociatedPartyCommitSecret
Available on crate feature
draft-kohbrok-mls-associated-parties
only.AssociatedPartyCommitSecretId
Available on crate feature
draft-kohbrok-mls-associated-parties
only.AssociatedPartyCommitBaseSecret
Available on crate feature
draft-kohbrok-mls-associated-parties
only.HpqMlsExport
Available on crate feature
draft-ietf-mls-combiner
only.ApplicationExport
Available on crate feature
draft-ietf-mls-extensions
only.Arbitrary(String)
Implementations§
Source§impl KdfLabelKind
impl KdfLabelKind
pub fn to_application_export(&self, component_id: ComponentId) -> Self
Available on crate feature
draft-ietf-mls-extensions
only.Trait Implementations§
Source§impl AsRef<str> for KdfLabelKind
impl AsRef<str> for KdfLabelKind
Source§impl Clone for KdfLabelKind
impl Clone for KdfLabelKind
Source§fn clone(&self) -> KdfLabelKind
fn clone(&self) -> KdfLabelKind
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 KdfLabelKind
impl Debug for KdfLabelKind
Source§impl<'de> Deserialize<'de> for KdfLabelKind
impl<'de> Deserialize<'de> for KdfLabelKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for KdfLabelKind
impl Display for KdfLabelKind
Source§impl<'_derivative_strum> From<&'_derivative_strum KdfLabelKind> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum KdfLabelKind> for &'static str
Source§fn from(x: &'_derivative_strum KdfLabelKind) -> &'static str
fn from(x: &'_derivative_strum KdfLabelKind) -> &'static str
Converts to this type from the input type.
Source§impl From<EpochSecretExport> for KdfLabelKind
impl From<EpochSecretExport> for KdfLabelKind
Source§fn from(value: EpochSecretExport) -> Self
fn from(value: EpochSecretExport) -> Self
Converts to this type from the input type.
Source§impl From<KdfLabelKind> for &'static str
impl From<KdfLabelKind> for &'static str
Source§fn from(x: KdfLabelKind) -> &'static str
fn from(x: KdfLabelKind) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for KdfLabelKind
impl FromStr for KdfLabelKind
Source§impl Hash for KdfLabelKind
impl Hash for KdfLabelKind
Source§impl PartialEq for KdfLabelKind
impl PartialEq for KdfLabelKind
Source§impl Serialize for KdfLabelKind
impl Serialize for KdfLabelKind
Source§impl ToPrefixedLabel for KdfLabelKind
impl ToPrefixedLabel for KdfLabelKind
fn to_prefixed_string(&self, protocol_version: ProtocolVersion) -> String
Source§impl TryFrom<&str> for KdfLabelKind
impl TryFrom<&str> for KdfLabelKind
impl Eq for KdfLabelKind
impl StructuralPartialEq for KdfLabelKind
Auto Trait Implementations§
impl Freeze for KdfLabelKind
impl RefUnwindSafe for KdfLabelKind
impl Send for KdfLabelKind
impl Sync for KdfLabelKind
impl Unpin for KdfLabelKind
impl UnwindSafe for KdfLabelKind
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