pub struct KemEncapsulation {
pub ciphertext: Vec<u8>,
pub shared_secret: Zeroizing<Vec<u8>>,
}Expand description
Result of an ML-KEM encapsulation.
Fields§
§ciphertext: Vec<u8>KEM ciphertext — sent to the KRA alongside the wrapped key.
Shared secret — used as the AES-KWP key to wrap the private key. Wrapped in Zeroizing to clear from memory on drop.
Auto Trait Implementations§
impl Freeze for KemEncapsulation
impl RefUnwindSafe for KemEncapsulation
impl Send for KemEncapsulation
impl Sync for KemEncapsulation
impl Unpin for KemEncapsulation
impl UnsafeUnpin for KemEncapsulation
impl UnwindSafe for KemEncapsulation
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