LweCiphertextVectorDiscardingLoadingEngine

Trait LweCiphertextVectorDiscardingLoadingEngine 

Source
pub trait LweCiphertextVectorDiscardingLoadingEngine<InputCiphertextVector, OutputCiphertextVector>: AbstractEngine
where InputCiphertextVector: LweCiphertextVectorEntity, OutputCiphertextVector: LweCiphertextVectorEntity<KeyDistribution = InputCiphertextVector::KeyDistribution>,
{ // Required methods fn discard_load_lwe_ciphertext_vector( &mut self, output_vector: &mut OutputCiphertextVector, input_vector: &InputCiphertextVector, output_range: LweCiphertextRange, input_range: LweCiphertextRange, ) -> Result<(), LweCiphertextVectorDiscardingLoadingError<Self::EngineError>>; unsafe fn discard_load_lwe_ciphertext_vector_unchecked( &mut self, output_vector: &mut OutputCiphertextVector, input_vector: &InputCiphertextVector, output_range: LweCiphertextRange, input_range: LweCiphertextRange, ); }
Expand description

A trait for engines loading (discarding) a sub LWE ciphertext vector from another one.

§Semantics

This discarding operation fills a piece of the output_vector lwe ciphertext vector with a piece of the input_vector LWE ciphertext vector.

§Formal Definition

Required Methods§

Source

fn discard_load_lwe_ciphertext_vector( &mut self, output_vector: &mut OutputCiphertextVector, input_vector: &InputCiphertextVector, output_range: LweCiphertextRange, input_range: LweCiphertextRange, ) -> Result<(), LweCiphertextVectorDiscardingLoadingError<Self::EngineError>>

Loads a subpart of an LWE ciphertext vector into another LWE ciphertext vector.

Source

unsafe fn discard_load_lwe_ciphertext_vector_unchecked( &mut self, output_vector: &mut OutputCiphertextVector, input_vector: &InputCiphertextVector, output_range: LweCiphertextRange, input_range: LweCiphertextRange, )

Unsafely loads a subpart of an LWE ciphertext vector into another LWE ciphertext vector.

§Safety

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

Implementors§