pub trait GlweCiphertextVectorConversionEngine<Input, Output>: AbstractEnginewhere
Input: GlweCiphertextVectorEntity,
Output: GlweCiphertextVectorEntity,{
fn convert_glwe_ciphertext_vector(
&mut self,
input: &Input
) -> Result<Output, GlweCiphertextVectorConversionError<Self::EngineError>>;
unsafe fn convert_glwe_ciphertext_vector_unchecked(
&mut self,
input: &Input
) -> Output;
}
Expand description
A trait for engines converting GLWE ciphertext vectors.
Semantics
This pure operation generates a GLWE ciphertext vector containing
the conversion of the input
GLWE ciphertext vector to a type with a different representation
(for instance from cpu to gpu memory).
Formal Definition
Required Methods
sourcefn convert_glwe_ciphertext_vector(
&mut self,
input: &Input
) -> Result<Output, GlweCiphertextVectorConversionError<Self::EngineError>>
fn convert_glwe_ciphertext_vector(
&mut self,
input: &Input
) -> Result<Output, GlweCiphertextVectorConversionError<Self::EngineError>>
Converts a GLWE ciphertext vector.
sourceunsafe fn convert_glwe_ciphertext_vector_unchecked(
&mut self,
input: &Input
) -> Output
unsafe fn convert_glwe_ciphertext_vector_unchecked(
&mut self,
input: &Input
) -> Output
Unsafely converts a GLWE ciphertext vector.
Safety
For the general safety concerns regarding this operation, refer to the different variants
of GlweCiphertextVectorConversionError
. For safety concerns specific to an engine,
refer to the implementer safety section.