LweCiphertextVectorDiscardingDecryptionEngine

Trait LweCiphertextVectorDiscardingDecryptionEngine 

Source
pub trait LweCiphertextVectorDiscardingDecryptionEngine<SecretKey, CiphertextVector, PlaintextVector>: AbstractEngine
where SecretKey: LweSecretKeyEntity, CiphertextVector: LweCiphertextVectorEntity, PlaintextVector: PlaintextVectorEntity,
{ // Required methods fn discard_decrypt_lwe_ciphertext_vector( &mut self, key: &SecretKey, output: &mut PlaintextVector, input: &CiphertextVector, ) -> Result<(), LweCiphertextVectorDiscardingDecryptionError<Self::EngineError>>; unsafe fn discard_decrypt_lwe_ciphertext_vector_unchecked( &mut self, key: &SecretKey, output: &mut PlaintextVector, input: &CiphertextVector, ); }
Expand description

A trait for engines decrypting (discarding) LWE ciphertext vectors.

§Semantics

This discarding operation fills the output plaintext vector with the element-wise decryption of the input LWE ciphertext vector under the key LWE secret key.

§Formal Definition

cf here

Required Methods§

Source

fn discard_decrypt_lwe_ciphertext_vector( &mut self, key: &SecretKey, output: &mut PlaintextVector, input: &CiphertextVector, ) -> Result<(), LweCiphertextVectorDiscardingDecryptionError<Self::EngineError>>

Decrypts an LWE ciphertext vector.

Source

unsafe fn discard_decrypt_lwe_ciphertext_vector_unchecked( &mut self, key: &SecretKey, output: &mut PlaintextVector, input: &CiphertextVector, )

Unsafely decrypts an LWE ciphertext vector.

§Safety

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

Implementors§