[][src]Trait paillier_common::traits::Encrypt

pub trait Encrypt<EK, PT, CT> {
    fn encrypt(ek: &EK, m: PT) -> CT;
}

Encryption of plaintext.

Required methods

fn encrypt(ek: &EK, m: PT) -> CT

Encrypt plaintext m under key ek into a ciphertext.

Loading content...

Implementors

impl<'m, 'd> Encrypt<DecryptionKey, RawPlaintext<'m>, RawCiphertext<'d>> for Paillier[src]

impl<'m, 'd> Encrypt<EncryptionKey, RawPlaintext<'m>, RawCiphertext<'d>> for Paillier[src]

impl<'m, EK> Encrypt<EK, &'m [u64], EncodedCiphertext<Vec<u64>>> for Paillier where
    Self: Encrypt<EK, RawPlaintext<'p>, RawCiphertext<'c>>, 
[src]

impl<EK> Encrypt<EK, u64, EncodedCiphertext<u64>> for Paillier where
    Self: Encrypt<EK, RawPlaintext<'p>, RawCiphertext<'c>>, 
[src]

Loading content...