pub trait LweToGlweSecretKeyTransformationEngine<InputKey, OutputKey>: AbstractEngine where
    InputKey: LweSecretKeyEntity,
    OutputKey: GlweSecretKeyEntity<KeyDistribution = InputKey::KeyDistribution>, 
{ fn transform_lwe_secret_key_to_glwe_secret_key(
        &mut self,
        lwe_secret_key: InputKey,
        polynomial_size: PolynomialSize
    ) -> Result<OutputKey, LweToGlweSecretKeyTransformationEngineError<Self::EngineError>>; unsafe fn transform_lwe_secret_key_to_glwe_secret_key_unchecked(
        &mut self,
        lwe_secret_key: InputKey,
        polynomial_size: PolynomialSize
    ) -> OutputKey; }
Expand description

A trait for engines transforming LWE secret keys into GLWE secret keys.

Semantics

This pure operation moves the existing LWE into a fresh GLWE secret key.

Required Methods

Does the transformation of the LWE secret key into a GLWE secret key

Unsafely transforms an LWE secret key into a GLWE secret key

Safety

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

Implementors