pub trait LweCiphertextVectorDecryptionEngine<SecretKey, CiphertextVector, PlaintextVector>: AbstractEnginewhere
SecretKey: LweSecretKeyEntity,
CiphertextVector: LweCiphertextVectorEntity,
PlaintextVector: PlaintextVectorEntity,{
// Required methods
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
Required Methods§
Sourcefn decrypt_lwe_ciphertext_vector(
&mut self,
key: &SecretKey,
input: &CiphertextVector,
) -> Result<PlaintextVector, LweCiphertextVectorDecryptionError<Self::EngineError>>
fn decrypt_lwe_ciphertext_vector( &mut self, key: &SecretKey, input: &CiphertextVector, ) -> Result<PlaintextVector, LweCiphertextVectorDecryptionError<Self::EngineError>>
Decrypts an LWE ciphertext vector.
Sourceunsafe fn decrypt_lwe_ciphertext_vector_unchecked(
&mut self,
key: &SecretKey,
input: &CiphertextVector,
) -> PlaintextVector
unsafe fn decrypt_lwe_ciphertext_vector_unchecked( &mut self, key: &SecretKey, input: &CiphertextVector, ) -> PlaintextVector
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§
impl LweCiphertextVectorDecryptionEngine<LweSecretKey32, LweCiphertextVector32, PlaintextVector32> for DefaultEngine
§Description:
Implementation of LweCiphertextVectorDecryptionEngine for DefaultEngine that operates on
32 bits integers.
impl LweCiphertextVectorDecryptionEngine<LweSecretKey32, LweCiphertextVectorView32<'_>, PlaintextVector32> for DefaultEngine
§Description:
Implementation of LweCiphertextVectorDecryptionEngine for DefaultEngine that
operates on 32 bits integers.
impl LweCiphertextVectorDecryptionEngine<LweSecretKey64, LweCiphertextVector64, PlaintextVector64> for DefaultEngine
§Description:
Implementation of LweCiphertextVectorDecryptionEngine for DefaultEngine that operates on
64 bits integers.
impl LweCiphertextVectorDecryptionEngine<LweSecretKey64, LweCiphertextVectorView64<'_>, PlaintextVector64> for DefaultEngine
§Description:
Implementation of LweCiphertextVectorDecryptionEngine for DefaultEngine that
operates on 64 bits integers.