pub struct EncapsulatedKey {
pub ciphertext: Vec<u8>,
pub shared_secret: Zeroizing<[u8; 32]>,
}Expand description
One encapsulation result. The secret is always exactly 32 bytes and erased on drop.
Fields§
§ciphertext: Vec<u8>Public ciphertext to serialize into EncapsulationMechanism.
Shared secret; callers retain its erasing owner through the consuming operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncapsulatedKey
impl RefUnwindSafe for EncapsulatedKey
impl Send for EncapsulatedKey
impl Sync for EncapsulatedKey
impl Unpin for EncapsulatedKey
impl UnsafeUnpin for EncapsulatedKey
impl UnwindSafe for EncapsulatedKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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