pub struct PqxdhSessionMessage {
pub sequence_number: u64,
pub encrypted_payload: Vec<u8>,
pub auth_tag: [u8; 16],
}Expand description
PQXDH session message for ongoing communication (Phase 3)
After the initial PQXDH handshake, follow-up messages use the established shared secret for AEAD encryption. This provides efficient ongoing communication.
Fields§
§sequence_number: u64Message sequence number (for replay protection)
encrypted_payload: Vec<u8>AEAD encrypted payload using session keys
auth_tag: [u8; 16]AEAD authentication tag
Trait Implementations§
Source§impl Clone for PqxdhSessionMessage
impl Clone for PqxdhSessionMessage
Source§fn clone(&self) -> PqxdhSessionMessage
fn clone(&self) -> PqxdhSessionMessage
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 PqxdhSessionMessage
impl Debug for PqxdhSessionMessage
Source§impl<'de> Deserialize<'de> for PqxdhSessionMessage
impl<'de> Deserialize<'de> for PqxdhSessionMessage
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 PqxdhSessionMessage
impl PartialEq for PqxdhSessionMessage
Source§impl Serialize for PqxdhSessionMessage
impl Serialize for PqxdhSessionMessage
impl StructuralPartialEq for PqxdhSessionMessage
Auto Trait Implementations§
impl Freeze for PqxdhSessionMessage
impl RefUnwindSafe for PqxdhSessionMessage
impl Send for PqxdhSessionMessage
impl Sync for PqxdhSessionMessage
impl Unpin for PqxdhSessionMessage
impl UnwindSafe for PqxdhSessionMessage
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