Skip to main content

encaps_derand

Function encaps_derand 

Source
pub fn encaps_derand(
    ek: &EncapsulationKey,
    eseed: &[u8; 64],
) -> Result<(Ciphertext, SharedSecret)>
Expand description

EncapsulateDerand(pk, eseed) per draft-connolly-cfrg-xwing-kem-11.

eseed[0..32] seeds ML-KEM-768 encapsulation; eseed[32..64] is the ephemeral X25519 scalar.