pub trait GlweCiphertextDiscardingDecryptionEngine<SecretKey, Ciphertext, PlaintextVector>: AbstractEnginewhere
    SecretKey: GlweSecretKeyEntity,
    Ciphertext: GlweCiphertextEntity,
    PlaintextVector: PlaintextVectorEntity,
{ fn discard_decrypt_glwe_ciphertext(
        &mut self,
        key: &SecretKey,
        output: &mut PlaintextVector,
        input: &Ciphertext
    ) -> Result<(), GlweCiphertextDiscardingDecryptionError<Self::EngineError>>; unsafe fn discard_decrypt_glwe_ciphertext_unchecked(
        &mut self,
        key: &SecretKey,
        output: &mut PlaintextVector,
        input: &Ciphertext
    ); }
Expand description

A trait for engines decrypting (discarding) GLWE ciphertexts.

Semantics

This discarding operation fills the output plaintext vector with the decryption of the input GLWE ciphertext, under the key secret key.

Formal Definition

cf here

Required Methods

Decrypts a GLWE ciphertext .

Unsafely decrypts a GLWE ciphertext .

Safety

For the general safety concerns regarding this operation, refer to the different variants of GlweCiphertextDiscardingDecryptionError. For safety concerns specific to an engine, refer to the implementer safety section.

Implementors