pub trait LweCiphertextVectorLoadingEngine<CiphertextVector, SubCiphertextVector>: AbstractEnginewhere
CiphertextVector: LweCiphertextVectorEntity,
SubCiphertextVector: LweCiphertextVectorEntity<KeyDistribution = CiphertextVector::KeyDistribution>,{
// Required methods
fn load_lwe_ciphertext_vector(
&mut self,
vector: &CiphertextVector,
range: LweCiphertextRange,
) -> Result<SubCiphertextVector, LweCiphertextVectorLoadingError<Self::EngineError>>;
unsafe fn load_lwe_ciphertext_vector_unchecked(
&mut self,
vector: &CiphertextVector,
range: LweCiphertextRange,
) -> SubCiphertextVector;
}Expand description
Required Methods§
Sourcefn load_lwe_ciphertext_vector(
&mut self,
vector: &CiphertextVector,
range: LweCiphertextRange,
) -> Result<SubCiphertextVector, LweCiphertextVectorLoadingError<Self::EngineError>>
fn load_lwe_ciphertext_vector( &mut self, vector: &CiphertextVector, range: LweCiphertextRange, ) -> Result<SubCiphertextVector, LweCiphertextVectorLoadingError<Self::EngineError>>
Loads a subpart of an LWE ciphertext vector.
Sourceunsafe fn load_lwe_ciphertext_vector_unchecked(
&mut self,
vector: &CiphertextVector,
range: LweCiphertextRange,
) -> SubCiphertextVector
unsafe fn load_lwe_ciphertext_vector_unchecked( &mut self, vector: &CiphertextVector, range: LweCiphertextRange, ) -> SubCiphertextVector
Unsafely loads a subpart of an LWE ciphertext vector.
§Safety
For the general safety concerns regarding this operation, refer to the different variants
of LweCiphertextVectorLoadingError. For safety concerns specific to an engine, refer
to the implementer safety section.