pub struct MLKEMPrivateKey<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> { /* private fields */ }Expand description
An ML-KEM private key.
Trait Implementations§
Source§impl<const k: usize, PK: Clone + MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> Clone for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
impl<const k: usize, PK: Clone + MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> Clone for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
Source§fn clone(&self) -> MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
fn clone(&self) -> MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
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 moreSource§impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> Debug for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
Debug impl mainly to prevent the secret key from being printed in logs.
impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> Debug for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
Debug impl mainly to prevent the secret key from being printed in logs.
Source§impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> Display for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
Display impl mainly to prevent the secret key from being printed in logs.
impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> Display for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
Display impl mainly to prevent the secret key from being printed in logs.
Source§impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> Drop for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
Zeroizing drop
impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> Drop for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
Zeroizing drop
impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> Eq for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
Source§impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> KEMPrivateKey<SK_LEN> for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> KEMPrivateKey<SK_LEN> for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
Source§impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> MLKEMPrivateKeyTrait<k, PK, SK_LEN, PK_LEN> for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> MLKEMPrivateKeyTrait<k, PK, SK_LEN, PK_LEN> for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
Source§impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> PartialEq for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> PartialEq for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
impl<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize> Secret for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>
Auto Trait Implementations§
impl<const k: usize, PK, const SK_LEN: usize, const PK_LEN: usize> Freeze for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>where
PK: Freeze,
impl<const k: usize, PK, const SK_LEN: usize, const PK_LEN: usize> RefUnwindSafe for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>where
PK: RefUnwindSafe,
impl<const k: usize, PK, const SK_LEN: usize, const PK_LEN: usize> Send for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>where
PK: Send,
impl<const k: usize, PK, const SK_LEN: usize, const PK_LEN: usize> Sync for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>where
PK: Sync,
impl<const k: usize, PK, const SK_LEN: usize, const PK_LEN: usize> Unpin for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>where
PK: Unpin,
impl<const k: usize, PK, const SK_LEN: usize, const PK_LEN: usize> UnsafeUnpin for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>where
PK: UnsafeUnpin,
impl<const k: usize, PK, const SK_LEN: usize, const PK_LEN: usize> UnwindSafe for MLKEMPrivateKey<k, PK, SK_LEN, PK_LEN>where
PK: UnwindSafe,
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