pub struct MessageKey(pub [u8; 32]);Expand description
Single-use message key derived from the symmetric ratchet chain.
Use this to key an AEAD cipher (e.g. ChaCha20-Poly1305). Zeroed on drop.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl Debug for MessageKey
impl Debug for MessageKey
Auto Trait Implementations§
impl Freeze for MessageKey
impl RefUnwindSafe for MessageKey
impl Send for MessageKey
impl Sync for MessageKey
impl Unpin for MessageKey
impl UnsafeUnpin for MessageKey
impl UnwindSafe for MessageKey
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