pub struct SharedSecret(/* private fields */);Expand description
A 32-byte X25519 shared secret produced by KeyCustody::dh_agree.
This type intentionally does not implement Clone or Serialize to
prevent accidental duplication or serialization of secret material. Callers
should consume the secret and then let it be dropped.
Zeroization: The inner bytes are automatically zeroed on drop via
ZeroizeOnDrop, ensuring key material is cleared from memory.
Implementations§
Trait Implementations§
Auto 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