Skip to main content

ml_kem_dk_to_seed

Function ml_kem_dk_to_seed 

pub fn ml_kem_dk_to_seed(dk: &DecapsulationKey<MlKem768>) -> Option<[u8; 64]>
Expand description

Serialize an ML-KEM-768 decapsulation key to its 64-byte seed.

Returns None only if the key was built from the (deprecated) expanded form rather than a seed; keys from ml_kem_generate_keypair or ml_kem_decaps_from_seed are always seed-backed.