pub trait LweCiphertextCreationEngine<Container, Ciphertext>: AbstractEnginewhere
    Ciphertext: LweCiphertextEntity,
{ fn create_lwe_ciphertext_from(
        &mut self,
        container: Container
    ) -> Result<Ciphertext, LweCiphertextCreationError<Self::EngineError>>; unsafe fn create_lwe_ciphertext_from_unchecked(
        &mut self,
        container: Container
    ) -> Ciphertext; }
Expand description

A trait for engines creating an LWE ciphertext from an arbitrary container.

Semantics

This pure operation creates an LWE ciphertext from the abitrary container. By arbitrary here, we mean that Container can be any type that allows to instantiate an LweCiphertextEntity.

Required Methods

Creates an LWE ciphertext from an arbitrary container.

Unsafely creates an LWE ciphertext from an arbitrary container.

Safety

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

Implementors

Description:

Implementation of LweCiphertextCreationEngine for DefaultEngine which returns an immutable LweCiphertextView32 that does not own its memory.

Description:

Implementation of LweCiphertextCreationEngine for DefaultEngine which returns an immutable LweCiphertextView64 that does not own its memory.

Description:

Implementation of LweCiphertextCreationEngine for DefaultEngine which returns a mutable LweCiphertextMutView32 that does not own its memory.

Description:

Implementation of LweCiphertextCreationEngine for DefaultEngine which returns a mutable LweCiphertextMutView64 that does not own its memory.