pub struct WelcomeKeyMaterial { /* private fields */ }Available on 32-bit or 64-bit only.
Expand description
The key material a client uses to process a Welcome message.
Implementations§
Source§impl WelcomeKeyMaterial
impl WelcomeKeyMaterial
Sourcepub fn key_package_ref(
&self,
crypto: &impl OpenMlsCrypto,
) -> Result<KeyPackageRef, LibraryError>
pub fn key_package_ref( &self, crypto: &impl OpenMlsCrypto, ) -> Result<KeyPackageRef, LibraryError>
The KeyPackageRef addressed by the welcome’s encrypted group
secrets. The bundle computes it from its KeyPackage, the virtual-client
material carries the ref it was matched on.
Sourcepub fn init_private_key(&self) -> &HpkePrivateKey
pub fn init_private_key(&self) -> &HpkePrivateKey
The init private key used to decrypt the encrypted group secrets.
Sourcepub fn hpke_init_key(&self) -> &InitKey
pub fn hpke_init_key(&self) -> &InitKey
The public init key the encrypted group secrets are encrypted to.
Sourcepub fn key_package_bundle(&self) -> Option<&KeyPackageBundle>
pub fn key_package_bundle(&self) -> Option<&KeyPackageBundle>
The local KeyPackageBundle on the regular path, or None on the
virtual-client path. Checks that only apply when there is a local
KeyPackage to compare against branch on this.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WelcomeKeyMaterial
impl RefUnwindSafe for WelcomeKeyMaterial
impl Send for WelcomeKeyMaterial
impl Sync for WelcomeKeyMaterial
impl Unpin for WelcomeKeyMaterial
impl UnsafeUnpin for WelcomeKeyMaterial
impl UnwindSafe for WelcomeKeyMaterial
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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