pub trait LweCiphertextVectorDiscardingDecryptionEngine<SecretKey, CiphertextVector, PlaintextVector>: AbstractEnginewhere
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§
Sourcefn discard_decrypt_lwe_ciphertext_vector(
&mut self,
key: &SecretKey,
output: &mut PlaintextVector,
input: &CiphertextVector,
) -> Result<(), LweCiphertextVectorDiscardingDecryptionError<Self::EngineError>>
fn discard_decrypt_lwe_ciphertext_vector( &mut self, key: &SecretKey, output: &mut PlaintextVector, input: &CiphertextVector, ) -> Result<(), LweCiphertextVectorDiscardingDecryptionError<Self::EngineError>>
Decrypts an LWE ciphertext vector.
Sourceunsafe fn discard_decrypt_lwe_ciphertext_vector_unchecked(
&mut self,
key: &SecretKey,
output: &mut PlaintextVector,
input: &CiphertextVector,
)
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§
impl LweCiphertextVectorDiscardingDecryptionEngine<LweSecretKey32, LweCiphertextVector32, PlaintextVector32> for DefaultEngine
§Description:
Implementation of LweCiphertextVectorDiscardingDecryptionEngine for DefaultEngine that
operates on 32 bits integers.
impl LweCiphertextVectorDiscardingDecryptionEngine<LweSecretKey64, LweCiphertextVector64, PlaintextVector64> for DefaultEngine
§Description:
Implementation of LweCiphertextVectorDiscardingDecryptionEngine for DefaultEngine that
operates on 64 bits integers.