pub struct MlsCiphersuite(/* private fields */);
Expand description
A wrapper for the OpenMLS Ciphersuite, so that we are able to provide a default value.
Methods from Deref<Target = Ciphersuite>§
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 MlsCiphersuite
impl Clone for MlsCiphersuite
source§fn clone(&self) -> MlsCiphersuite
fn clone(&self) -> MlsCiphersuite
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 MlsCiphersuite
impl Debug for MlsCiphersuite
source§impl Default for MlsCiphersuite
impl Default for MlsCiphersuite
source§impl Deref for MlsCiphersuite
impl Deref for MlsCiphersuite
source§impl<'de> Deserialize<'de> for MlsCiphersuite
impl<'de> Deserialize<'de> for MlsCiphersuite
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 MlsCiphersuite
impl From<Ciphersuite> for MlsCiphersuite
source§fn from(value: Ciphersuite) -> Self
fn from(value: Ciphersuite) -> Self
Converts to this type from the input type.
source§impl From<MlsCiphersuite> for Ciphersuite
impl From<MlsCiphersuite> for Ciphersuite
source§fn from(ciphersuite: MlsCiphersuite) -> Self
fn from(ciphersuite: MlsCiphersuite) -> Self
Converts to this type from the input type.
source§impl From<MlsCiphersuite> for u16
impl From<MlsCiphersuite> for u16
source§fn from(cs: MlsCiphersuite) -> Self
fn from(cs: MlsCiphersuite) -> Self
Converts to this type from the input type.
source§impl Hash for MlsCiphersuite
impl Hash for MlsCiphersuite
source§impl PartialEq for MlsCiphersuite
impl PartialEq for MlsCiphersuite
source§impl Serialize for MlsCiphersuite
impl Serialize for MlsCiphersuite
source§impl TryFrom<MlsCiphersuite> for JwsAlgorithm
impl TryFrom<MlsCiphersuite> for JwsAlgorithm
source§type Error = E2eIdentityError
type Error = E2eIdentityError
The type returned in the event of a conversion error.
source§fn try_from(cs: MlsCiphersuite) -> E2eIdentityResult<Self>
fn try_from(cs: MlsCiphersuite) -> E2eIdentityResult<Self>
Performs the conversion.
source§impl TryFrom<u16> for MlsCiphersuite
impl TryFrom<u16> for MlsCiphersuite
source§type Error = CryptoError
type Error = CryptoError
The type returned in the event of a conversion error.
source§fn try_from(c: u16) -> CryptoResult<Self>
fn try_from(c: u16) -> CryptoResult<Self>
Performs the conversion.
impl Copy for MlsCiphersuite
impl Eq for MlsCiphersuite
impl StructuralPartialEq for MlsCiphersuite
Auto Trait Implementations§
impl Freeze for MlsCiphersuite
impl RefUnwindSafe for MlsCiphersuite
impl Send for MlsCiphersuite
impl Sync for MlsCiphersuite
impl Unpin for MlsCiphersuite
impl UnwindSafe for MlsCiphersuite
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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
§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<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read moresource§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