pub trait GlweCiphertextVectorEncryptionEngine<SecretKey, PlaintextVector, CiphertextVector>: AbstractEnginewhere
    SecretKey: GlweSecretKeyEntity,
    PlaintextVector: PlaintextVectorEntity,
    CiphertextVector: GlweCiphertextVectorEntity,
{ fn encrypt_glwe_ciphertext_vector(
        &mut self,
        key: &SecretKey,
        input: &PlaintextVector,
        noise: Variance
    ) -> Result<CiphertextVector, GlweCiphertextVectorEncryptionError<Self::EngineError>>; unsafe fn encrypt_glwe_ciphertext_vector_unchecked(
        &mut self,
        key: &SecretKey,
        input: &PlaintextVector,
        noise: Variance
    ) -> CiphertextVector; }
Expand description

A trait for engines encrypting GLWE ciphertext vectors.

Semantics

This pure operation generates a GLWE ciphertext vector containing the piece-wise encryptions of the input plaintext vector, under the key secret key.

Formal Definition

cf here

Required Methods

Encrypts a GLWE ciphertext vector.

Unsafely encrypts a GLWE ciphertext vector.

Safety

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

Implementors