pub trait LweCiphertextFusingAdditionEngine<InputCiphertext, OutputCiphertext>: AbstractEngine where
    InputCiphertext: LweCiphertextEntity,
    OutputCiphertext: LweCiphertextEntity<KeyDistribution = InputCiphertext::KeyDistribution>, 
{ fn fuse_add_lwe_ciphertext(
        &mut self,
        output: &mut OutputCiphertext,
        input: &InputCiphertext
    ) -> Result<(), LweCiphertextFusingAdditionError<Self::EngineError>>; unsafe fn fuse_add_lwe_ciphertext_unchecked(
        &mut self,
        output: &mut OutputCiphertext,
        input: &InputCiphertext
    ); }
Expand description

A trait for engines adding (fusing) LWE ciphertexts.

Semantics

This fusing operation adds the input LWE ciphertext to the output LWE ciphertext.

Formal Definition

cf here

Required Methods

Adds an LWE ciphertext to an other.

Unsafely add an LWE ciphertext to an other.

Safety

For the general safety concerns regarding this operation, refer to the different variants of LweCiphertextFusingAdditionError. For safety concerns specific to an engine, refer to the implementer safety section.

Implementors