pub struct EncryptionKey { /* private fields */ }
Expand description
EncryptionKey
contains an HPKE public key that allows the encryption of
path secrets in MLS commits.
Trait Implementations§
Source§impl Clone for EncryptionKey
impl Clone for EncryptionKey
Source§fn clone(&self) -> EncryptionKey
fn clone(&self) -> EncryptionKey
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 EncryptionKey
impl Debug for EncryptionKey
Source§impl<'de> Deserialize<'de> for EncryptionKey
impl<'de> Deserialize<'de> for EncryptionKey
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 Deserialize for EncryptionKey
impl Deserialize for EncryptionKey
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl DeserializeBytes for EncryptionKey
impl DeserializeBytes for EncryptionKey
Source§impl From<EncryptionKey> for ParentNode
impl From<EncryptionKey> for ParentNode
Source§fn from(public_key: EncryptionKey) -> Self
fn from(public_key: EncryptionKey) -> Self
Converts to this type from the input type.
Source§impl From<VLBytes> for EncryptionKey
impl From<VLBytes> for EncryptionKey
Source§fn from(key: HpkePublicKey) -> Self
fn from(key: HpkePublicKey) -> Self
Converts to this type from the input type.
Source§impl Hash for EncryptionKey
impl Hash for EncryptionKey
Source§impl PartialEq for EncryptionKey
impl PartialEq for EncryptionKey
Source§impl Serialize for &EncryptionKey
impl Serialize for &EncryptionKey
Source§impl Serialize for EncryptionKey
impl Serialize for EncryptionKey
Source§impl Serialize for EncryptionKey
impl Serialize for EncryptionKey
Source§impl Size for &EncryptionKey
impl Size for &EncryptionKey
fn tls_serialized_len(&self) -> usize
Source§impl Size for EncryptionKey
impl Size for EncryptionKey
fn tls_serialized_len(&self) -> usize
impl EncryptionKey<CURRENT_VERSION> for EncryptionKey
impl Eq for EncryptionKey
impl Key<CURRENT_VERSION> for EncryptionKey
impl StructuralPartialEq for EncryptionKey
Auto Trait Implementations§
impl Freeze for EncryptionKey
impl RefUnwindSafe for EncryptionKey
impl Send for EncryptionKey
impl Sync for EncryptionKey
impl Unpin for EncryptionKey
impl UnwindSafe for EncryptionKey
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§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