Trait paillier::traits::Rerandomisation
[−]
[src]
pub trait Rerandomisation<EK, CT> { fn rerandomise(ek: &EK, c: &CT) -> CT; }
Rerandomisation of ciphertext.
Required Methods
fn rerandomise(ek: &EK, c: &CT) -> CT
Rerandomise ciphertext c
to hide any history of which homomorphic operations were
used to compute it, making it look exactly like a fresh encryption of the same plaintext.
Implementors
impl<I, S> Rerandomisation<EncryptionKey<I>, Ciphertext<I>> for S where S: AbstractScheme<BigInteger=I>,
I: Samplable,
I: ModularArithmetic,
&'a I: Mul<I, Output=I>,
I: Rem<&'b I, Output=I>impl<I, T, S, EK> Rerandomisation<EK, Ciphertext<I, T>> for S where S: AbstractScheme<BigInteger=I>,
S: Rerandomisation<EK, Ciphertext<I>>impl<I, T, S, EK> Rerandomisation<EK, Ciphertext<I, T>> for S where S: AbstractScheme<BigInteger=I>,
S: Rerandomisation<EK, Ciphertext<I>>