pub struct Sealed {
pub counter: u64,
pub ciphertext: Vec<u8>,
}Expand description
A sealed frame: the AEAD ciphertext plus the explicit nonce it was sealed
under. The caller carries counter on the wire so the peer can open.
Fields§
§counter: u64The explicit AEAD nonce assigned to this frame.
ciphertext: Vec<u8>The AEAD ciphertext (plaintext length + 16-byte tag).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sealed
impl RefUnwindSafe for Sealed
impl Send for Sealed
impl Sync for Sealed
impl Unpin for Sealed
impl UnsafeUnpin for Sealed
impl UnwindSafe for Sealed
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