pub trait GlweSecretKeyDiscardingConversionEngine<Input, Output>: AbstractEnginewhere
    Input: GlweSecretKeyEntity,
    Output: GlweSecretKeyEntity,
{ fn discard_convert_glwe_secret_key(
        &mut self,
        output: &mut Output,
        input: &Input
    ) -> Result<(), GlweSecretKeyDiscardingConversionError<Self::EngineError>>; unsafe fn discard_convert_glwe_secret_key_unchecked(
        &mut self,
        output: &mut Output,
        input: &Input
    ); }
Expand description

A trait for engines converting (discarding) GLWE secret keys .

Semantics

This discarding operation fills the output GLWE secret key with 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 GlweSecretKeyDiscardingConversionError. For safety concerns specific to an engine, refer to the implementer safety section.

Implementors