pub trait LweCiphertextVectorCreationEngine<Container, CiphertextVector>: AbstractEnginewhere
CiphertextVector: LweCiphertextVectorEntity,{
fn create_lwe_ciphertext_vector_from(
&mut self,
container: Container,
lwe_size: LweSize
) -> Result<CiphertextVector, LweCiphertextVectorCreationError<Self::EngineError>>;
unsafe fn create_lwe_ciphertext_vector_from_unchecked(
&mut self,
container: Container,
lwe_size: LweSize
) -> CiphertextVector;
}
Expand description
Required Methods
sourcefn create_lwe_ciphertext_vector_from(
&mut self,
container: Container,
lwe_size: LweSize
) -> Result<CiphertextVector, LweCiphertextVectorCreationError<Self::EngineError>>
fn create_lwe_ciphertext_vector_from(
&mut self,
container: Container,
lwe_size: LweSize
) -> Result<CiphertextVector, LweCiphertextVectorCreationError<Self::EngineError>>
Creates an LWE ciphertext from an arbitrary container.
sourceunsafe fn create_lwe_ciphertext_vector_from_unchecked(
&mut self,
container: Container,
lwe_size: LweSize
) -> CiphertextVector
unsafe fn create_lwe_ciphertext_vector_from_unchecked(
&mut self,
container: Container,
lwe_size: LweSize
) -> CiphertextVector
Unsafely creates an LWE ciphertext vector from an arbitrary container.
Safety
For the general safety concerns regarding this operation, refer to the different variants
of LweCiphertextVectorCreationError
. For safety concerns specific to an engine,
refer to the implementer safety section.
Implementors
impl LweCiphertextVectorCreationEngine<Vec<u32, Global>, LweCiphertextVector32> for DefaultEngine
Description:
Implementation of LweCiphertextVectorCreationEngine
for DefaultEngine
which returns a
LweCiphertextVector32
.
impl LweCiphertextVectorCreationEngine<Vec<u64, Global>, LweCiphertextVector64> for DefaultEngine
Description:
Implementation of LweCiphertextVectorCreationEngine
for DefaultEngine
which returns a
LweCiphertextVector64
.
impl<'data> LweCiphertextVectorCreationEngine<&'data [u32], LweCiphertextVectorView32<'data>> for DefaultEngine
Description:
Implementation of LweCiphertextVectorCreationEngine
for DefaultEngine
which returns an
immutable LweCiphertextVectorView32
that does not own its memory.
impl<'data> LweCiphertextVectorCreationEngine<&'data [u64], LweCiphertextVectorView64<'data>> for DefaultEngine
Description:
Implementation of LweCiphertextVectorCreationEngine
for DefaultEngine
which returns an
immutable LweCiphertextVectorView64
that does not own its memory.
impl<'data> LweCiphertextVectorCreationEngine<&'data mut [u32], LweCiphertextVectorMutView32<'data>> for DefaultEngine
Description:
Implementation of LweCiphertextVectorCreationEngine
for DefaultEngine
which returns a
mutable LweCiphertextVectorMutView32
that does not own its memory.
impl<'data> LweCiphertextVectorCreationEngine<&'data mut [u64], LweCiphertextVectorMutView64<'data>> for DefaultEngine
Description:
Implementation of LweCiphertextVectorCreationEngine
for DefaultEngine
which returns a
mutable LweCiphertextVectorMutView64
that does not own its memory.