pub fn crypto_kem_mlkem768_enc_deterministic(
ciphertext: &mut Ciphertext,
shared_secret: &mut SharedSecret,
public_key: &PublicKey,
seed: &EncSeed,
) -> Result<(), Error>Expand description
Deterministic variant of crypto_kem_mlkem768_enc with the
encapsulation randomness taken from seed. For known-answer tests; a
repeated seed repeats the shared secret.
Compatible with libsodium’s crypto_kem_mlkem768_enc_deterministic.
§Errors
Returns Error::InvalidKey if public_key is not a valid ML-KEM-768
encapsulation key.