pub struct SealedMessage {
pub ciphertext: Vec<u8>,
pub wrapped_key_recipient: Vec<u8>,
pub wrapped_key_sender: Vec<u8>,
}Expand description
Output of seal: the three BYTEA columns of an E2EE message row.
Fields§
§ciphertext: Vec<u8>version || xnonce || XChaCha20-Poly1305(plaintext || signature).
wrapped_key_recipient: Vec<u8>K wrapped to the recipient’s static X25519 key.
wrapped_key_sender: Vec<u8>K wrapped to the sender’s own static X25519 key (outbox export).
Auto Trait Implementations§
impl Freeze for SealedMessage
impl RefUnwindSafe for SealedMessage
impl Send for SealedMessage
impl Sync for SealedMessage
impl Unpin for SealedMessage
impl UnsafeUnpin for SealedMessage
impl UnwindSafe for SealedMessage
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