pub enum PqxdhEncryptedContent {
Initial(PqxdhInitialMessage),
Session(PqxdhSessionMessage),
}Expand description
PQXDH encrypted content for asynchronous secure communication
This supports both initial handshake messages (Phase 2) and ongoing session messages (Phase 3) of the PQXDH protocol.
Variants§
Initial(PqxdhInitialMessage)
Initial PQXDH handshake message that establishes the session and delivers the first encrypted payload
Session(PqxdhSessionMessage)
Follow-up session message using established shared secret for efficient ongoing communication
Trait Implementations§
Source§impl Clone for PqxdhEncryptedContent
impl Clone for PqxdhEncryptedContent
Source§fn clone(&self) -> PqxdhEncryptedContent
fn clone(&self) -> PqxdhEncryptedContent
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 PqxdhEncryptedContent
impl Debug for PqxdhEncryptedContent
Source§impl<'de> Deserialize<'de> for PqxdhEncryptedContent
impl<'de> Deserialize<'de> for PqxdhEncryptedContent
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 PartialEq for PqxdhEncryptedContent
impl PartialEq for PqxdhEncryptedContent
Source§impl Serialize for PqxdhEncryptedContent
impl Serialize for PqxdhEncryptedContent
impl StructuralPartialEq for PqxdhEncryptedContent
Auto Trait Implementations§
impl Freeze for PqxdhEncryptedContent
impl RefUnwindSafe for PqxdhEncryptedContent
impl Send for PqxdhEncryptedContent
impl Sync for PqxdhEncryptedContent
impl Unpin for PqxdhEncryptedContent
impl UnwindSafe for PqxdhEncryptedContent
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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