Trait paillier::traits::Multiplication
[−]
[src]
pub trait Multiplication<EK, CT1, PT2, CT> { fn mul(ek: &EK, c1: &CT1, m2: &PT2) -> CT; }
Multiplication of ciphertext with plaintext.
Required Methods
fn mul(ek: &EK, c1: &CT1, m2: &PT2) -> CT
Homomorphically combine ciphertext c1
and plaintext m2
to obtain a ciphertext
containing the multiplication of the (underlying) plaintexts, reduced modulus n
from ek
.
Implementors
impl<I, S> Multiplication<EncryptionKey<I>, Ciphertext<I>, Plaintext<I>, Ciphertext<I>> for S where S: AbstractScheme<BigInteger=I>,
I: ModularArithmeticimpl<I, T, S, EK> Multiplication<EK, Ciphertext<I, T>, Plaintext<I, T>, Ciphertext<I, T>> for S where S: AbstractScheme<BigInteger=I>,
S: Multiplication<EK, Ciphertext<I>, Plaintext<I>, Ciphertext<I>>impl<I, T, S, EK> Multiplication<EK, Ciphertext<I, T>, Plaintext<I, T>, Ciphertext<I, T>> for S where S: AbstractScheme<BigInteger=I>,
S: Multiplication<EK, Ciphertext<I>, Plaintext<I>, Ciphertext<I>>impl<'a, 'b, E, M: 'b, CT, S, EK: 'a> Multiplication<EncodingEncryptionKey<'a, 'b, EK, E>, CT, M, CT> for S where M: EncodableType,
E: Encoder<M>,
S: Multiplication<EK, CT, E::Target, CT>