pub trait MLKEMPrivateKeyTrait<const k: usize, PK: MLKEMPublicKeyInternalTrait<k, PK_LEN>, const SK_LEN: usize, const PK_LEN: usize>: KEMPrivateKey<SK_LEN> {
// Required methods
fn seed(&self) -> Option<KeyMaterial<64>>;
fn pk(&self) -> &PK;
fn pk_hash(&self) -> &[u8; 32];
fn sk_decode(sk: &[u8; SK_LEN]) -> Result<Self, KEMError>;
}Expand description
General trait for all ML-KEM private keys types.
Required Methods§
Sourcefn seed(&self) -> Option<KeyMaterial<64>>
fn seed(&self) -> Option<KeyMaterial<64>>
Get a ref to the seed, if there is one stored with this private key
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".