pub trait GlweCiphertextCreationEngine<Container, Ciphertext>: AbstractEnginewhere
    Ciphertext: GlweCiphertextEntity,
{ fn create_glwe_ciphertext_from(
        &mut self,
        container: Container,
        polynomial_size: PolynomialSize
    ) -> Result<Ciphertext, GlweCiphertextCreationError<Self::EngineError>>; unsafe fn create_glwe_ciphertext_from_unchecked(
        &mut self,
        container: Container,
        polynomial_size: PolynomialSize
    ) -> Ciphertext; }
Expand description

A trait for engines creating a GLWE ciphertext from an arbitrary container.

Semantics

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

Required Methods

Creates a GLWE ciphertext from an arbitrary container.

Unsafely creates a GLWE ciphertext from an arbitrary container.

Safety

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

Implementors

Description:

Implementation of GlweCiphertextCreationEngine for DefaultEngine which returns an immutable GlweCiphertextView32 that does not own its memory.

Description:

Implementation of GlweCiphertextCreationEngine for DefaultEngine which returns an immutable GlweCiphertextView64 that does not own its memory.

Description:

Implementation of GlweCiphertextCreationEngine for DefaultEngine which returns a mutable GlweCiphertextMutView32 that does not own its memory.

Description:

Implementation of GlweCiphertextCreationEngine for DefaultEngine which returns a mutable GlweCiphertextMutView64 that does not own its memory.