pub trait LweCiphertextVectorDecryptionEngine<SecretKey, CiphertextVector, PlaintextVector>: AbstractEngine where
    SecretKey: LweSecretKeyEntity,
    CiphertextVector: LweCiphertextVectorEntity<KeyDistribution = SecretKey::KeyDistribution>,
    PlaintextVector: PlaintextVectorEntity
{ fn decrypt_lwe_ciphertext_vector(
        &mut self,
        key: &SecretKey,
        input: &CiphertextVector
    ) -> Result<PlaintextVector, LweCiphertextVectorDecryptionError<Self::EngineError>>; unsafe fn decrypt_lwe_ciphertext_vector_unchecked(
        &mut self,
        key: &SecretKey,
        input: &CiphertextVector
    ) -> PlaintextVector; }
Expand description

A trait for engines decrypting LWE ciphertext vectors.

Semantics

This pure operation generates a plaintext vector containing the element-wise decryption of the input LWE ciphertext vector under the key secret key.

Formal Definition

cf here

Required Methods

Decrypts an LWE ciphertext vector.

Unsafely decrypts an LWE ciphertext vector.

Safety

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

Implementors