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

Decrypts a GLWE ciphertext into a plaintext vector.

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.

Implementors