Skip to main content

LweCiphertextDiscardingConversionEngine

Trait LweCiphertextDiscardingConversionEngine 

Source
pub trait LweCiphertextDiscardingConversionEngine<Input, Output>: AbstractEngine{
    // Required methods
    fn discard_convert_lwe_ciphertext(
        &mut self,
        output: &mut Output,
        input: &Input,
    ) -> Result<(), LweCiphertextDiscardingConversionError<Self::EngineError>>;
    unsafe fn discard_convert_lwe_ciphertext_unchecked(
        &mut self,
        output: &mut Output,
        input: &Input,
    );
}
Expand description

A trait for engines converting (discarding) LWE ciphertexts .

§Semantics

This discarding operation fills the output LWE ciphertext with the conversion of the input LWE ciphertext to a type with a different representation (for instance from cpu to gpu memory).

§Formal Definition

Required Methods§

Source

fn discard_convert_lwe_ciphertext( &mut self, output: &mut Output, input: &Input, ) -> Result<(), LweCiphertextDiscardingConversionError<Self::EngineError>>

Converts a LWE ciphertext .

Source

unsafe fn discard_convert_lwe_ciphertext_unchecked( &mut self, output: &mut Output, input: &Input, )

Unsafely converts a LWE ciphertext .

§Safety

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§