pub trait LweBootstrapKeyConversionEngine<InputKey, OutputKey>: AbstractEnginewhere
InputKey: LweBootstrapKeyEntity,
OutputKey: LweBootstrapKeyEntity,{
// Required methods
fn convert_lwe_bootstrap_key(
&mut self,
input: &InputKey,
) -> Result<OutputKey, LweBootstrapKeyConversionError<Self::EngineError>>;
unsafe fn convert_lwe_bootstrap_key_unchecked(
&mut self,
input: &InputKey,
) -> OutputKey;
}Expand description
Required Methods§
Sourcefn convert_lwe_bootstrap_key(
&mut self,
input: &InputKey,
) -> Result<OutputKey, LweBootstrapKeyConversionError<Self::EngineError>>
fn convert_lwe_bootstrap_key( &mut self, input: &InputKey, ) -> Result<OutputKey, LweBootstrapKeyConversionError<Self::EngineError>>
Converts an LWE bootstrap key.
Sourceunsafe fn convert_lwe_bootstrap_key_unchecked(
&mut self,
input: &InputKey,
) -> OutputKey
unsafe fn convert_lwe_bootstrap_key_unchecked( &mut self, input: &InputKey, ) -> OutputKey
Unsafely converts an LWE bootstrap key.
§Safety
For the general safety concerns regarding this operation, refer to the different variants
of LweBootstrapKeyConversionError. For safety concerns specific to an engine, refer to
the implementer safety section.
Implementors§
impl LweBootstrapKeyConversionEngine<LweBootstrapKey32, FftFourierLweBootstrapKey32> for FftEngine
§Description
Implementation of LweBootstrapKeyConversionEngine for FftEngine that operates on
32 bit integers. It converts a bootstrap key from the standard to the Fourier domain.
impl LweBootstrapKeyConversionEngine<LweBootstrapKey64, FftFourierLweBootstrapKey64> for FftEngine
§Description
Implementation of LweBootstrapKeyConversionEngine for FftEngine that operates on
64 bit integers. It converts a bootstrap key from the standard to the Fourier domain.