pub fn cipher_and_material_for(
ec_public_key: &X25519Public,
pq_public_key: &MlKemPublic,
salt: &[u8],
mac_salt: Option<&[u8]>,
csprng: &mut impl CryptoRngCore,
) -> (XChaCha20Poly1305, Option<Zeroizing<[u8; 32]>>, XNonce, X25519Public, MlKemCiphertext)Expand description
Generate cipher and cryptographic material for public key encryption.
Creates all the components needed for X-Wing hybrid KEM encryption: ephemeral keys, shared secrets, and the resulting cipher instance.