[][src]Function elgamal_curve25519::encrypt

pub fn encrypt(
    msg: Message,
    pk: PublicKey,
    sk: PrivateKey
) -> Result<CypherText, String>

encrypt encrypts a Message into a CypherText.