pub trait GlweSecretKeyConversionEngine<Input, Output>: AbstractEnginewhere
    Input: GlweSecretKeyEntity,
    Output: GlweSecretKeyEntity,
{ fn convert_glwe_secret_key(
        &mut self,
        input: &Input
    ) -> Result<Output, GlweSecretKeyConversionError<Self::EngineError>>; unsafe fn convert_glwe_secret_key_unchecked(
        &mut self,
        input: &Input
    ) -> Output; }
Expand description

A trait for engines converting GLWE secret keys.

Semantics

This pure operation generates a GLWE secret key containing the conversion of the input GLWE secret key to a type with a different representation (for instance from cpu to gpu memory).

Formal Definition

Required Methods

Converts a GLWE secret key.

Unsafely converts a GLWE secret key.

Safety

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

Implementors