Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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