pub struct ChaCha20Poly1305Content {
pub ciphertext: Vec<u8>,
pub nonce: [u8; 12],
}Expand description
Minimal encrypted content for wire protocol messages Optimized for space - no key_id since it’s determined by channel context
Fields§
§ciphertext: Vec<u8>Encrypted data + authentication tag
nonce: [u8; 12]ChaCha20-Poly1305 nonce (fixed 12 bytes for space efficiency)
Trait Implementations§
Source§impl Clone for ChaCha20Poly1305Content
impl Clone for ChaCha20Poly1305Content
Source§fn clone(&self) -> ChaCha20Poly1305Content
fn clone(&self) -> ChaCha20Poly1305Content
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 ChaCha20Poly1305Content
impl Debug for ChaCha20Poly1305Content
Source§impl<'de> Deserialize<'de> for ChaCha20Poly1305Content
impl<'de> Deserialize<'de> for ChaCha20Poly1305Content
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 ChaCha20Poly1305Content
impl PartialEq for ChaCha20Poly1305Content
Source§impl Serialize for ChaCha20Poly1305Content
impl Serialize for ChaCha20Poly1305Content
impl Eq for ChaCha20Poly1305Content
impl StructuralPartialEq for ChaCha20Poly1305Content
Auto Trait Implementations§
impl Freeze for ChaCha20Poly1305Content
impl RefUnwindSafe for ChaCha20Poly1305Content
impl Send for ChaCha20Poly1305Content
impl Sync for ChaCha20Poly1305Content
impl Unpin for ChaCha20Poly1305Content
impl UnwindSafe for ChaCha20Poly1305Content
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more