Trait paillier::traits::Encryption
[−]
[src]
pub trait Encryption<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.
Implementors
impl<I, S> Encryption<EncryptionKey<I>, Plaintext<I>, Ciphertext<I>> for S where S: AbstractScheme<BigInteger=I>,
I: One,
I: Samplable,
I: ModularArithmetic,
&'a I: Add<&'b I, Output=I>,
&'a I: Mul<I, Output=I>,
&'a I: Mul<&'b I, Output=I>,
I: Rem<&'b I, Output=I>impl<I, T, S, EK> Encryption<EK, Plaintext<I, T>, Ciphertext<I, T>> for S where S: AbstractScheme<BigInteger=I>,
S: Encryption<EK, Plaintext<I>, Ciphertext<I>>impl<I, T, S, EK> Encryption<EK, Plaintext<I, T>, Ciphertext<I, T>> for S where S: AbstractScheme<BigInteger=I>,
S: Encryption<EK, Plaintext<I>, Ciphertext<I>>impl<'a, 'b, E: 'b, M, CT, S, EK: 'a> Encryption<EncodingEncryptionKey<'a, 'b, EK, E>, M, CT> for S where M: EncodableType,
E: Encoder<M>,
S: Encryption<EK, E::Target, CT>