pub struct SharedSecret { /* private fields */ }Expand description
A shared secret that is automatically zeroized on drop.
Comparisons use constant-time equality to prevent timing side-channels.
§Cloning
This type implements Clone. Each clone is independently zeroized on
drop, but callers should be mindful that every clone creates an additional
copy of the secret material in memory. Prefer moving over cloning where
possible.
Implementations§
Trait Implementations§
Source§fn clone(&self) -> SharedSecret
fn clone(&self) -> SharedSecret
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 moreAuto Trait Implementations§
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