pub struct SharedSecret<EK: EncappedKey>(/* private fields */);
Expand description
The shared secret that results from key exchange.
Implementations§
Sourcepub fn new(bytes: GenericArray<u8, EK::SharedSecretSize>) -> Self
pub fn new(bytes: GenericArray<u8, EK::SharedSecretSize>) -> Self
Constructs a new SharedSecret
by wrapping the given bytes
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