pub fn crypto_kem_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.
Compatible with libsodium’s crypto_kem_dec.
§Errors
Returns Error::InvalidKey if ciphertext carries a low-order X25519
point; see crypto_kem_xwing_dec.