pub trait LweKeyswitchKeyDiscardingConversionEngine<Input, Output>: AbstractEnginewhere
Input: LweKeyswitchKeyEntity,
Output: LweKeyswitchKeyEntity,{
fn discard_convert_lwe_keyswitch_key(
&mut self,
output: &mut Output,
input: &Input
) -> Result<(), LweKeyswitchKeyDiscardingConversionError<Self::EngineError>>;
unsafe fn discard_convert_lwe_keyswitch_key_unchecked(
&mut self,
output: &mut Output,
input: &Input
);
}
Expand description
A trait for engines converting (discarding) LWE keyswitch keys .
Semantics
This discarding operation fills the output
LWE keyswitch key with
the conversion of the input
LWE keyswitch key to a type with a different representation (for
instance from cpu to gpu memory).
Formal Definition
Required Methods
sourcefn discard_convert_lwe_keyswitch_key(
&mut self,
output: &mut Output,
input: &Input
) -> Result<(), LweKeyswitchKeyDiscardingConversionError<Self::EngineError>>
fn discard_convert_lwe_keyswitch_key(
&mut self,
output: &mut Output,
input: &Input
) -> Result<(), LweKeyswitchKeyDiscardingConversionError<Self::EngineError>>
Converts a LWE keyswitch key .
sourceunsafe fn discard_convert_lwe_keyswitch_key_unchecked(
&mut self,
output: &mut Output,
input: &Input
)
unsafe fn discard_convert_lwe_keyswitch_key_unchecked(
&mut self,
output: &mut Output,
input: &Input
)
Unsafely converts a LWE keyswitch key .
Safety
For the general safety concerns regarding this operation, refer to the different variants
of LweKeyswitchKeyDiscardingConversionError
. For safety concerns specific to an
engine, refer to the implementer safety section.