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§
Sourcefn add_inplace(&self, ct1: &mut CT, ct2: &CT)
fn add_inplace(&self, ct1: &mut CT, ct2: &CT)
Add a ciphertext into another.
Sourcefn rerandomize(&self, ct: &mut CT, pk: &CT)
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.