AdditiveHomomorphicScheme

Trait AdditiveHomomorphicScheme 

Source
pub trait AdditiveHomomorphicScheme<CT, SK>: EncryptionOfZeros<CT, SK> {
    // Required methods
    fn add_inplace(&self, ct1: &mut CT, ct2: &CT);
    fn rerandomize(&self, ct: &mut CT, pk: &CT);
}
Expand description

Trait for additive homomorphic operations.

Required Methods§

Source

fn add_inplace(&self, ct1: &mut CT, ct2: &CT)

Add a ciphertext into another.

Source

fn rerandomize(&self, ct: &mut CT, pk: &CT)

Rerandomize a ciphertext in-place. The resulting ciphertext will decrypt to the same plaintext, while being unlinkable to the input ciphertext.

Implementors§

Source§

impl<T> AdditiveHomomorphicScheme<(RqPoly<T>, RqPoly<T>), SecretKey<T>> for FV<T>
where RqPoly<T>: FiniteRingElt, T: SuperTrait<T>,