pub trait LweCiphertextCleartextFusingMultiplicationEngine<Ciphertext, Cleartext>: AbstractEngine where
    Cleartext: CleartextEntity,
    Ciphertext: LweCiphertextEntity
{ fn fuse_mul_lwe_ciphertext_cleartext(
        &mut self,
        output: &mut Ciphertext,
        input: &Cleartext
    ) -> Result<(), LweCiphertextCleartextFusingMultiplicationError<Self::EngineError>>; unsafe fn fuse_mul_lwe_ciphertext_cleartext_unchecked(
        &mut self,
        output: &mut Ciphertext,
        input: &Cleartext
    ); }
Expand description

A trait for engines multiplying (fusing) LWE ciphertexts by cleartexts.

Semantics

This fusing operation multiply the output LWE ciphertext with the input cleartext.

Formal Definition

cf here

Required Methods

Multiply an LWE ciphertext with a cleartext.

Unsafely multiply an LWE ciphertext with a cleartext.

Safety

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

Implementors