#[non_exhaustive]pub struct MlKem1024Ciphertext(/* private fields */);Expand description
Ciphertext.
Implementations§
Source§impl MlKem1024Ciphertext
impl MlKem1024Ciphertext
Sourcepub fn from_bytes(bytes: [u8; 1568]) -> Self
pub fn from_bytes(bytes: [u8; 1568]) -> Self
Construct from raw bytes.
Sourcepub fn try_from_slice(bytes: &[u8]) -> Result<Self, KyberLibError>
pub fn try_from_slice(bytes: &[u8]) -> Result<Self, KyberLibError>
Construct from a borrowed slice, validating the length.
§Errors
KyberLibError::InvalidLength on length mismatch.
Trait Implementations§
Source§impl Clone for MlKem1024Ciphertext
impl Clone for MlKem1024Ciphertext
Source§fn clone(&self) -> MlKem1024Ciphertext
fn clone(&self) -> MlKem1024Ciphertext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MlKem1024Ciphertext
Source§impl Debug for MlKem1024Ciphertext
impl Debug for MlKem1024Ciphertext
impl Eq for MlKem1024Ciphertext
Source§impl PartialEq for MlKem1024Ciphertext
impl PartialEq for MlKem1024Ciphertext
impl StructuralPartialEq for MlKem1024Ciphertext
Auto Trait Implementations§
impl Freeze for MlKem1024Ciphertext
impl RefUnwindSafe for MlKem1024Ciphertext
impl Send for MlKem1024Ciphertext
impl Sync for MlKem1024Ciphertext
impl Unpin for MlKem1024Ciphertext
impl UnsafeUnpin for MlKem1024Ciphertext
impl UnwindSafe for MlKem1024Ciphertext
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