pub fn crypto_kem_enc(
ciphertext: &mut Ciphertext,
shared_secret: &mut SharedSecret,
public_key: &PublicKey,
) -> Result<(), Error>Expand description
Creates a random shared secret for public_key, writing it to
shared_secret and its encapsulation to ciphertext.
Compatible with libsodium’s crypto_kem_enc.
§Errors
Returns Error::InvalidKey if public_key is not a valid X-Wing
public key; see crypto_kem_xwing_enc.