pub struct CiphertextMessage { /* private fields */ }Expand description
X-Wing ciphertext.
Implementations§
Source§impl CiphertextMessage
impl CiphertextMessage
Sourcepub fn to_bytes(&self) -> Ciphertext
pub fn to_bytes(&self) -> Ciphertext
Convert the ciphertext to the following format: ML-KEM-768 ciphertext(1088 bytes) || X25519 ciphertext(32 bytes).
Trait Implementations§
Source§impl Clone for CiphertextMessage
impl Clone for CiphertextMessage
Source§fn clone(&self) -> CiphertextMessage
fn clone(&self) -> CiphertextMessage
Returns a duplicate 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 From<&Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B0>, B0>>> for CiphertextMessage
impl From<&Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>, B0>, B0>, B0>, B0>, B0>>> for CiphertextMessage
Source§fn from(value: &Ciphertext) -> Self
fn from(value: &Ciphertext) -> Self
Converts to this type from the input type.
Source§impl From<&CiphertextMessage> for Ciphertext
impl From<&CiphertextMessage> for Ciphertext
Source§fn from(msg: &CiphertextMessage) -> Self
fn from(msg: &CiphertextMessage) -> Self
Converts to this type from the input type.
Source§impl From<CiphertextMessage> for Ciphertext
impl From<CiphertextMessage> for Ciphertext
Source§fn from(msg: CiphertextMessage) -> Self
fn from(msg: CiphertextMessage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CiphertextMessage
impl PartialEq for CiphertextMessage
impl Eq for CiphertextMessage
impl StructuralPartialEq for CiphertextMessage
Auto Trait Implementations§
impl Freeze for CiphertextMessage
impl RefUnwindSafe for CiphertextMessage
impl Send for CiphertextMessage
impl Sync for CiphertextMessage
impl Unpin for CiphertextMessage
impl UnwindSafe for CiphertextMessage
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