Skip to main content

crypto_kem_xwing_enc_deterministic

Function crypto_kem_xwing_enc_deterministic 

Source
pub fn crypto_kem_xwing_enc_deterministic(
    ciphertext: &mut Ciphertext,
    shared_secret: &mut SharedSecret,
    public_key: &PublicKey,
    seed: &EncSeed,
) -> Result<(), Error>
Expand description

Deterministic variant of crypto_kem_xwing_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_xwing_enc_deterministic.

§Errors

Returns the same errors as crypto_kem_xwing_enc.