pub trait GlweCiphertextCreationEngine<Container, Ciphertext>: AbstractEnginewhere
Ciphertext: GlweCiphertextEntity,{
fn create_glwe_ciphertext_from(
&mut self,
container: Container,
polynomial_size: PolynomialSize
) -> Result<Ciphertext, GlweCiphertextCreationError<Self::EngineError>>;
unsafe fn create_glwe_ciphertext_from_unchecked(
&mut self,
container: Container,
polynomial_size: PolynomialSize
) -> Ciphertext;
}
Expand description
Required Methods
sourcefn create_glwe_ciphertext_from(
&mut self,
container: Container,
polynomial_size: PolynomialSize
) -> Result<Ciphertext, GlweCiphertextCreationError<Self::EngineError>>
fn create_glwe_ciphertext_from(
&mut self,
container: Container,
polynomial_size: PolynomialSize
) -> Result<Ciphertext, GlweCiphertextCreationError<Self::EngineError>>
Creates a GLWE ciphertext from an arbitrary container.
sourceunsafe fn create_glwe_ciphertext_from_unchecked(
&mut self,
container: Container,
polynomial_size: PolynomialSize
) -> Ciphertext
unsafe fn create_glwe_ciphertext_from_unchecked(
&mut self,
container: Container,
polynomial_size: PolynomialSize
) -> Ciphertext
Unsafely creates a GLWE ciphertext from an arbitrary container.
Safety
For the general safety concerns regarding this operation, refer to the different variants
of GlweCiphertextCreationError
. For safety concerns specific to an engine, refer
to the implementer safety section.
Implementors
impl GlweCiphertextCreationEngine<Vec<u32, Global>, GlweCiphertext32> for DefaultEngine
Description:
Implementation of GlweCiphertextCreationEngine
for DefaultEngine
which returns a
GlweCiphertext32
.
impl GlweCiphertextCreationEngine<Vec<u64, Global>, GlweCiphertext64> for DefaultEngine
Description:
Implementation of GlweCiphertextCreationEngine
for DefaultEngine
which returns a
GlweCiphertext64
.
impl<'data> GlweCiphertextCreationEngine<&'data [u32], GlweCiphertextView32<'data>> for DefaultEngine
Description:
Implementation of GlweCiphertextCreationEngine
for DefaultEngine
which returns an
immutable GlweCiphertextView32
that does not own its memory.
impl<'data> GlweCiphertextCreationEngine<&'data [u64], GlweCiphertextView64<'data>> for DefaultEngine
Description:
Implementation of GlweCiphertextCreationEngine
for DefaultEngine
which returns an
immutable GlweCiphertextView64
that does not own its memory.
impl<'data> GlweCiphertextCreationEngine<&'data mut [u32], GlweCiphertextMutView32<'data>> for DefaultEngine
Description:
Implementation of GlweCiphertextCreationEngine
for DefaultEngine
which returns a mutable
GlweCiphertextMutView32
that does not own its memory.
impl<'data> GlweCiphertextCreationEngine<&'data mut [u64], GlweCiphertextMutView64<'data>> for DefaultEngine
Description:
Implementation of GlweCiphertextCreationEngine
for DefaultEngine
which returns a mutable
GlweCiphertextMutView64
that does not own its memory.