pub fn crypto_kem_xwing_dec(
shared_secret: &mut SharedSecret,
ciphertext: &Ciphertext,
secret_key: &SecretKey,
) -> Result<(), Error>Expand description
Recovers the shared secret encapsulated in ciphertext with
secret_key, writing it to shared_secret. A ciphertext not created for
this key yields an unrelated pseudorandom secret, not an error.
Compatible with libsodium’s crypto_kem_xwing_dec.
§Errors
Returns Error::InvalidKey if the X25519 part of ciphertext is a
low-order point that gives an all-zero X25519 shared secret.