[][src]Function pgp::crypto::ecdh::encrypt

pub fn encrypt<R: CryptoRng + Rng>(
    rng: &mut R,
    curve: &ECCCurve,
    alg_sym: SymmetricKeyAlgorithm,
    hash: HashAlgorithm,
    fingerprint: &[u8],
    q: &[u8],
    plain: &[u8]
) -> Result<Vec<Vec<u8>>>

ECDH encryption.