pub struct EncapsKey { /* private fields */ }Expand description
ML-KEM encapsulation key (public key).
Implementations§
Source§impl EncapsKey
impl EncapsKey
Sourcepub const CIPHERTEXT_SIZE: usize = 1_088usize
pub const CIPHERTEXT_SIZE: usize = 1_088usize
Byte size of the produced ciphertext.
Sourcepub fn from_bytes(bytes: &[u8; 1184]) -> Self
pub fn from_bytes(bytes: &[u8; 1184]) -> Self
Decode key from bytes.
Auto Trait Implementations§
impl Freeze for EncapsKey
impl RefUnwindSafe for EncapsKey
impl Send for EncapsKey
impl Sync for EncapsKey
impl Unpin for EncapsKey
impl UnwindSafe for EncapsKey
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