pub struct EncryptedGroupSecrets {
pub recipient_key_package_hash: Vec<u8>,
pub kem_ciphertext: Vec<u8>,
pub encrypted_path_secret: Vec<u8>,
}Expand description
Encrypted group secrets for welcome messages
Fields§
§recipient_key_package_hash: Vec<u8>§kem_ciphertext: Vec<u8>§encrypted_path_secret: Vec<u8>Implementations§
Source§impl EncryptedGroupSecrets
impl EncryptedGroupSecrets
Sourcepub fn ciphertext(&self, suite: &CipherSuite) -> Result<MlKemCiphertext>
pub fn ciphertext(&self, suite: &CipherSuite) -> Result<MlKemCiphertext>
Return the ML-KEM ciphertext for this recipient
Sourcepub fn decapsulate_path_secret(
&self,
suite: &CipherSuite,
kem_secret: &MlKemSecretKey,
) -> Result<Vec<u8>>
pub fn decapsulate_path_secret( &self, suite: &CipherSuite, kem_secret: &MlKemSecretKey, ) -> Result<Vec<u8>>
Decapsulate the path secret using the recipient’s private key
Trait Implementations§
Source§impl Clone for EncryptedGroupSecrets
impl Clone for EncryptedGroupSecrets
Source§impl Debug for EncryptedGroupSecrets
impl Debug for EncryptedGroupSecrets
Source§impl<'de> Deserialize<'de> for EncryptedGroupSecrets
impl<'de> Deserialize<'de> for EncryptedGroupSecrets
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
Auto Trait Implementations§
impl Freeze for EncryptedGroupSecrets
impl RefUnwindSafe for EncryptedGroupSecrets
impl Send for EncryptedGroupSecrets
impl Sync for EncryptedGroupSecrets
impl Unpin for EncryptedGroupSecrets
impl UnsafeUnpin for EncryptedGroupSecrets
impl UnwindSafe for EncryptedGroupSecrets
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