#[non_exhaustive]pub struct MlKem512Ciphertext(/* private fields */);Expand description
Ciphertext.
Implementations§
Source§impl MlKem512Ciphertext
impl MlKem512Ciphertext
Sourcepub fn from_bytes(bytes: [u8; 768]) -> Self
pub fn from_bytes(bytes: [u8; 768]) -> 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 MlKem512Ciphertext
impl Clone for MlKem512Ciphertext
Source§fn clone(&self) -> MlKem512Ciphertext
fn clone(&self) -> MlKem512Ciphertext
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 MlKem512Ciphertext
Source§impl Debug for MlKem512Ciphertext
impl Debug for MlKem512Ciphertext
impl Eq for MlKem512Ciphertext
Source§impl PartialEq for MlKem512Ciphertext
impl PartialEq for MlKem512Ciphertext
impl StructuralPartialEq for MlKem512Ciphertext
Auto Trait Implementations§
impl Freeze for MlKem512Ciphertext
impl RefUnwindSafe for MlKem512Ciphertext
impl Send for MlKem512Ciphertext
impl Sync for MlKem512Ciphertext
impl Unpin for MlKem512Ciphertext
impl UnsafeUnpin for MlKem512Ciphertext
impl UnwindSafe for MlKem512Ciphertext
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