Struct xwing_kem::XwingPublicKey
source · pub struct XwingPublicKey(/* private fields */);
Implementations§
source§impl XwingPublicKey
impl XwingPublicKey
pub fn encapsulate(&self) -> (XwingSharedSecret, XwingCiphertext)
pub fn to_bytes(self) -> [u8; 1216]
pub fn from(bytes: [u8; 1216]) -> XwingPublicKey
Trait Implementations§
source§impl Clone for XwingPublicKey
impl Clone for XwingPublicKey
source§fn clone(&self) -> XwingPublicKey
fn clone(&self) -> XwingPublicKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for XwingPublicKey
impl Debug for XwingPublicKey
source§impl PartialEq for XwingPublicKey
impl PartialEq for XwingPublicKey
source§fn eq(&self, other: &XwingPublicKey) -> bool
fn eq(&self, other: &XwingPublicKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for XwingPublicKey
impl Eq for XwingPublicKey
impl StructuralPartialEq for XwingPublicKey
Auto Trait Implementations§
impl RefUnwindSafe for XwingPublicKey
impl Send for XwingPublicKey
impl Sync for XwingPublicKey
impl Unpin for XwingPublicKey
impl UnwindSafe for XwingPublicKey
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