pub trait LweCiphertextConsumingRetrievalEngine<Ciphertext, Container>: AbstractEnginewhere
Ciphertext: LweCiphertextEntity,{
fn consume_retrieve_lwe_ciphertext(
&mut self,
ciphertext: Ciphertext
) -> Result<Container, LweCiphertextConsumingRetrievalError<Self::EngineError>>;
unsafe fn consume_retrieve_lwe_ciphertext_unchecked(
&mut self,
ciphertext: Ciphertext
) -> Container;
}
Expand description
Required Methods
sourcefn consume_retrieve_lwe_ciphertext(
&mut self,
ciphertext: Ciphertext
) -> Result<Container, LweCiphertextConsumingRetrievalError<Self::EngineError>>
fn consume_retrieve_lwe_ciphertext(
&mut self,
ciphertext: Ciphertext
) -> Result<Container, LweCiphertextConsumingRetrievalError<Self::EngineError>>
Retrieves the content of the container from an LWE ciphertext, consuming it in the process.
sourceunsafe fn consume_retrieve_lwe_ciphertext_unchecked(
&mut self,
ciphertext: Ciphertext
) -> Container
unsafe fn consume_retrieve_lwe_ciphertext_unchecked(
&mut self,
ciphertext: Ciphertext
) -> Container
Unsafely retrieves the content of the container from an LWE ciphertext, consuming it in the process.
Safety
For the general safety concerns regarding this operation, refer to the different variants
of LweCiphertextConsumingRetrievalError
. For safety concerns specific to an engine,
refer to the implementer safety section.
Implementors
impl LweCiphertextConsumingRetrievalEngine<LweCiphertext32, Vec<u32, Global>> for DefaultEngine
Description:
Implementation of LweCiphertextConsumingRetrievalEngine
for DefaultEngine
that returns
the underlying vec of a LweCiphertext32
consuming it in the process
impl LweCiphertextConsumingRetrievalEngine<LweCiphertext64, Vec<u64, Global>> for DefaultEngine
Description:
Implementation of LweCiphertextConsumingRetrievalEngine
for DefaultEngine
that returns
the underlying vec of a LweCiphertext64
consuming it in the process
impl<'data> LweCiphertextConsumingRetrievalEngine<LweCiphertextMutView32<'data>, &'data mut [u32]> for DefaultEngine
Description:
Implementation of LweCiphertextConsumingRetrievalEngine
for DefaultEngine
that returns
the underlying container of a LweCiphertextMutView32
consuming it in the process
impl<'data> LweCiphertextConsumingRetrievalEngine<LweCiphertextMutView64<'data>, &'data mut [u64]> for DefaultEngine
Description:
Implementation of LweCiphertextConsumingRetrievalEngine
for DefaultEngine
that returns
the underlying container of a LweCiphertextMutView64
consuming it in the process
impl<'data> LweCiphertextConsumingRetrievalEngine<LweCiphertextView32<'data>, &'data [u32]> for DefaultEngine
Description:
Implementation of LweCiphertextConsumingRetrievalEngine
for DefaultEngine
that returns
the underlying container of a LweCiphertextView32
consuming it in the process
impl<'data> LweCiphertextConsumingRetrievalEngine<LweCiphertextView64<'data>, &'data [u64]> for DefaultEngine
Description:
Implementation of LweCiphertextConsumingRetrievalEngine
for DefaultEngine
that returns
the underlying container of a LweCiphertextView64
consuming it in the process