pub trait LweCiphertextVectorFusingAdditionEngine<InputCiphertextVector, OutputCiphertextVector>: AbstractEnginewhere
InputCiphertextVector: LweCiphertextVectorEntity,
OutputCiphertextVector: LweCiphertextVectorEntity<KeyDistribution = InputCiphertextVector::KeyDistribution>,{
// Required methods
fn fuse_add_lwe_ciphertext_vector(
&mut self,
output: &mut OutputCiphertextVector,
input: &InputCiphertextVector,
) -> Result<(), LweCiphertextVectorFusingAdditionError<Self::EngineError>>;
unsafe fn fuse_add_lwe_ciphertext_vector_unchecked(
&mut self,
output: &mut OutputCiphertextVector,
input: &InputCiphertextVector,
);
}Expand description
Required Methods§
Sourcefn fuse_add_lwe_ciphertext_vector(
&mut self,
output: &mut OutputCiphertextVector,
input: &InputCiphertextVector,
) -> Result<(), LweCiphertextVectorFusingAdditionError<Self::EngineError>>
fn fuse_add_lwe_ciphertext_vector( &mut self, output: &mut OutputCiphertextVector, input: &InputCiphertextVector, ) -> Result<(), LweCiphertextVectorFusingAdditionError<Self::EngineError>>
Add two LWE ciphertext vectors.
Sourceunsafe fn fuse_add_lwe_ciphertext_vector_unchecked(
&mut self,
output: &mut OutputCiphertextVector,
input: &InputCiphertextVector,
)
unsafe fn fuse_add_lwe_ciphertext_vector_unchecked( &mut self, output: &mut OutputCiphertextVector, input: &InputCiphertextVector, )
Unsafely add two LWE ciphertext vectors.
§Safety
For the general safety concerns regarding this operation, refer to the different variants
of LweCiphertextVectorFusingAdditionError. For safety concerns specific to an
engine, refer to the implementer safety section.
Implementors§
impl LweCiphertextVectorFusingAdditionEngine<LweCiphertextVector32, LweCiphertextVector32> for CoreEngine
§Description:
Implementation of LweCiphertextVectorFusingAdditionEngine for CoreEngine
that operates on 32 bits integers.
impl LweCiphertextVectorFusingAdditionEngine<LweCiphertextVector64, LweCiphertextVector64> for CoreEngine
§Description:
Implementation of LweCiphertextVectorFusingAdditionEngine for CoreEngine
that operates on 64 bits integers.