Struct kem::SharedSecret
source · [−]pub struct SharedSecret<EK: EncappedKey>(_);
Expand description
The shared secret that results from key exchange.
Implementations
sourceimpl<EK: EncappedKey> SharedSecret<EK>
impl<EK: EncappedKey> SharedSecret<EK>
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
sourceimpl<EK: EncappedKey> Drop for SharedSecret<EK>
impl<EK: EncappedKey> Drop for SharedSecret<EK>
impl<EK: EncappedKey> ZeroizeOnDrop for SharedSecret<EK>
Auto Trait Implementations
impl<EK> RefUnwindSafe for SharedSecret<EK> where
<<EK as EncappedKey>::SharedSecretSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<EK> Send for SharedSecret<EK>
impl<EK> Sync for SharedSecret<EK>
impl<EK> Unpin for SharedSecret<EK> where
<<EK as EncappedKey>::SharedSecretSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<EK> UnwindSafe for SharedSecret<EK> where
<<EK as EncappedKey>::SharedSecretSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more