pub struct EncapsulationResult { /* private fields */ }Expand description
Result of KEM encapsulation.
Contains the ciphertext and shared secret. The shared secret is automatically zeroed when dropped.
Implementations§
Source§impl EncapsulationResult
impl EncapsulationResult
Sourcepub fn ciphertext(&self) -> &[u8] ⓘ
pub fn ciphertext(&self) -> &[u8] ⓘ
Get the ciphertext.
Get the shared secret.
Trait Implementations§
Source§impl Clone for EncapsulationResult
impl Clone for EncapsulationResult
Source§fn clone(&self) -> EncapsulationResult
fn clone(&self) -> EncapsulationResult
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncapsulationResult
impl Debug for EncapsulationResult
Auto Trait Implementations§
impl Freeze for EncapsulationResult
impl RefUnwindSafe for EncapsulationResult
impl Send for EncapsulationResult
impl Sync for EncapsulationResult
impl Unpin for EncapsulationResult
impl UnwindSafe for EncapsulationResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)