pub trait GlweCiphertextDiscardingConversionEngine<Input, Output>: AbstractEnginewhere
    Input: GlweCiphertextEntity,
    Output: GlweCiphertextEntity,
{ fn discard_convert_glwe_ciphertext(
        &mut self,
        output: &mut Output,
        input: &Input
    ) -> Result<(), GlweCiphertextDiscardingConversionError<Self::EngineError>>; unsafe fn discard_convert_glwe_ciphertext_unchecked(
        &mut self,
        output: &mut Output,
        input: &Input
    ); }
Expand description

A trait for engines converting (discarding) GLWE ciphertexts .

Semantics

This discarding operation fills the output GLWE ciphertext with the conversion of the input GLWE ciphertext to a type with a different representation (for instance from cpu to gpu memory).

Formal Definition

Required Methods

Converts a GLWE ciphertext .

Unsafely converts a GLWE ciphertext .

Safety

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

Implementors