pub struct Ciphersuite(/* private fields */);Expand description
A wrapper for the OpenMLS Ciphersuite, so that we are able to provide a default value.
Methods from Deref<Target = MlsCiphersuite>§
pub fn hash_algorithm(&self) -> HashType
pub fn hash_algorithm(&self) -> HashType
Get the [HashType] for this Ciphersuite
pub fn signature_algorithm(&self) -> SignatureScheme
pub fn signature_algorithm(&self) -> SignatureScheme
Get the [SignatureScheme] for this Ciphersuite.
pub fn aead_algorithm(&self) -> AeadType
pub fn aead_algorithm(&self) -> AeadType
Get the [AeadType] for this Ciphersuite.
pub fn hpke_kdf_algorithm(&self) -> HpkeKdfType
pub fn hpke_kdf_algorithm(&self) -> HpkeKdfType
Get the [HpkeKdfType] for this Ciphersuite.
pub fn hpke_kem_algorithm(&self) -> HpkeKemType
pub fn hpke_kem_algorithm(&self) -> HpkeKemType
Get the [HpkeKemType] for this Ciphersuite.
pub fn hpke_aead_algorithm(&self) -> HpkeAeadType
pub fn hpke_aead_algorithm(&self) -> HpkeAeadType
Get the [HpkeAeadType] for this Ciphersuite.
pub fn hpke_config(&self) -> HpkeConfig
pub fn hpke_config(&self) -> HpkeConfig
Get the [HpkeConfig] for this Ciphersuite.
pub fn hash_length(&self) -> usize
pub fn hash_length(&self) -> usize
Get the length of the used hash algorithm.
pub fn mac_length(&self) -> usize
pub fn mac_length(&self) -> usize
Get the length of the AEAD tag.
pub fn aead_key_length(&self) -> usize
pub fn aead_key_length(&self) -> usize
Returns the key size of the used AEAD.
pub fn aead_nonce_length(&self) -> usize
pub fn aead_nonce_length(&self) -> usize
Returns the length of the nonce of the AEAD.
Trait Implementations§
Source§impl Clone for Ciphersuite
impl Clone for Ciphersuite
Source§fn clone(&self) -> Ciphersuite
fn clone(&self) -> Ciphersuite
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 Ciphersuite
impl Debug for Ciphersuite
Source§impl Default for Ciphersuite
impl Default for Ciphersuite
Source§impl Deref for Ciphersuite
impl Deref for Ciphersuite
Source§impl<'de> Deserialize<'de> for Ciphersuite
impl<'de> Deserialize<'de> for Ciphersuite
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 From<Ciphersuite> for Ciphersuite
impl From<Ciphersuite> for Ciphersuite
Source§fn from(value: MlsCiphersuite) -> Self
fn from(value: MlsCiphersuite) -> Self
Converts to this type from the input type.
Source§impl From<Ciphersuite> for MlsCiphersuite
impl From<Ciphersuite> for MlsCiphersuite
Source§fn from(ciphersuite: Ciphersuite) -> Self
fn from(ciphersuite: Ciphersuite) -> Self
Converts to this type from the input type.
Source§impl From<Ciphersuite> for u16
impl From<Ciphersuite> for u16
Source§fn from(cs: Ciphersuite) -> Self
fn from(cs: Ciphersuite) -> Self
Converts to this type from the input type.
Source§impl Hash for Ciphersuite
impl Hash for Ciphersuite
Source§impl Ord for Ciphersuite
impl Ord for Ciphersuite
Source§fn cmp(&self, other: &Ciphersuite) -> Ordering
fn cmp(&self, other: &Ciphersuite) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<Ciphersuite> for Ciphersuite
impl PartialEq<Ciphersuite> for Ciphersuite
Source§impl PartialEq for Ciphersuite
impl PartialEq for Ciphersuite
Source§impl PartialOrd for Ciphersuite
impl PartialOrd for Ciphersuite
Source§impl Serialize for Ciphersuite
impl Serialize for Ciphersuite
Source§impl TryFrom<Ciphersuite> for JwsAlgorithm
impl TryFrom<Ciphersuite> for JwsAlgorithm
Source§impl TryFrom<u16> for Ciphersuite
impl TryFrom<u16> for Ciphersuite
impl Copy for Ciphersuite
impl Eq for Ciphersuite
impl StructuralPartialEq for Ciphersuite
Auto Trait Implementations§
impl Freeze for Ciphersuite
impl RefUnwindSafe for Ciphersuite
impl Send for Ciphersuite
impl Sync for Ciphersuite
impl Unpin for Ciphersuite
impl UnwindSafe for Ciphersuite
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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