pub trait LweCiphertextVectorCreationEngine<Container, CiphertextVector>: AbstractEnginewhere
    CiphertextVector: LweCiphertextVectorEntity,
{ fn create_lwe_ciphertext_vector_from(
        &mut self,
        container: Container,
        lwe_size: LweSize
    ) -> Result<CiphertextVector, LweCiphertextVectorCreationError<Self::EngineError>>; unsafe fn create_lwe_ciphertext_vector_from_unchecked(
        &mut self,
        container: Container,
        lwe_size: LweSize
    ) -> CiphertextVector; }
Expand description

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

Semantics

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

Required Methods

Creates an LWE ciphertext from an arbitrary container.

Unsafely creates an LWE ciphertext vector from an arbitrary container.

Safety

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

Implementors

Description:

Implementation of LweCiphertextVectorCreationEngine for DefaultEngine which returns an immutable LweCiphertextVectorView32 that does not own its memory.

Description:

Implementation of LweCiphertextVectorCreationEngine for DefaultEngine which returns an immutable LweCiphertextVectorView64 that does not own its memory.

Description:

Implementation of LweCiphertextVectorCreationEngine for DefaultEngine which returns a mutable LweCiphertextVectorMutView32 that does not own its memory.

Description:

Implementation of LweCiphertextVectorCreationEngine for DefaultEngine which returns a mutable LweCiphertextVectorMutView64 that does not own its memory.