pub trait GlweCiphertextTrivialDecryptionEngine<Ciphertext, PlaintextVector>: AbstractEnginewhere
Ciphertext: GlweCiphertextEntity,
PlaintextVector: PlaintextVectorEntity,{
fn trivially_decrypt_glwe_ciphertext(
&mut self,
input: &Ciphertext
) -> Result<PlaintextVector, GlweCiphertextTrivialDecryptionError<Self::EngineError>>;
unsafe fn trivially_decrypt_glwe_ciphertext_unchecked(
&mut self,
input: &Ciphertext
) -> PlaintextVector;
}
Expand description
A trait for engines trivially decrypting GLWE ciphertexts.
Semantics
This pure operation generates a plaintext vector containing the
trivial decryption of the input
ciphertext.
Formal Definition
see here
Required Methods
sourcefn trivially_decrypt_glwe_ciphertext(
&mut self,
input: &Ciphertext
) -> Result<PlaintextVector, GlweCiphertextTrivialDecryptionError<Self::EngineError>>
fn trivially_decrypt_glwe_ciphertext(
&mut self,
input: &Ciphertext
) -> Result<PlaintextVector, GlweCiphertextTrivialDecryptionError<Self::EngineError>>
Decrypts a GLWE ciphertext into a plaintext vector.
sourceunsafe fn trivially_decrypt_glwe_ciphertext_unchecked(
&mut self,
input: &Ciphertext
) -> PlaintextVector
unsafe fn trivially_decrypt_glwe_ciphertext_unchecked(
&mut self,
input: &Ciphertext
) -> PlaintextVector
Unsafely trivially decrypts a GLWE ciphertext into a plaintext vector.
Safety
For the general safety concerns regarding this operation, refer to the different variants
of GlweCiphertextTrivialDecryptionError
. For safety concerns specific to an engine,
refer to the implementer safety section.