Trait paillier::traits::Rerandomize [−][src]
pub trait Rerandomize<EK, CT1, CT> { fn rerandomize(ek: &EK, c: CT1) -> CT; }
Rerandomisation of ciphertext.
Required Methods
fn rerandomize(ek: &EK, c: CT1) -> 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<'c, 'd> Rerandomize<EncryptionKey, RawCiphertext<'c>, RawCiphertext<'d>> for Paillier
impl<EK, C> Rerandomize<EK, C, EncodedCiphertext<u64>> for Paillier where
Self: Rerandomize<EK, RawCiphertext<'c>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<u64>>,impl<EK, C> Rerandomize<EK, C, EncodedCiphertext<Vec<u64>>> for Paillier where
Self: Rerandomize<EK, RawCiphertext<'c>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<Vec<u64>>>,