pub trait GlweCiphertextDiscardingDecryptionEngine<SecretKey, Ciphertext, PlaintextVector>: AbstractEnginewhere
SecretKey: GlweSecretKeyEntity,
Ciphertext: GlweCiphertextEntity,
PlaintextVector: PlaintextVectorEntity,{
fn discard_decrypt_glwe_ciphertext(
&mut self,
key: &SecretKey,
output: &mut PlaintextVector,
input: &Ciphertext
) -> Result<(), GlweCiphertextDiscardingDecryptionError<Self::EngineError>>;
unsafe fn discard_decrypt_glwe_ciphertext_unchecked(
&mut self,
key: &SecretKey,
output: &mut PlaintextVector,
input: &Ciphertext
);
}
Expand description
A trait for engines decrypting (discarding) GLWE ciphertexts.
Semantics
This discarding operation fills the output
plaintext vector with
the decryption of the input
GLWE ciphertext, under the key
secret key.
Formal Definition
cf here
Required Methods
sourcefn discard_decrypt_glwe_ciphertext(
&mut self,
key: &SecretKey,
output: &mut PlaintextVector,
input: &Ciphertext
) -> Result<(), GlweCiphertextDiscardingDecryptionError<Self::EngineError>>
fn discard_decrypt_glwe_ciphertext(
&mut self,
key: &SecretKey,
output: &mut PlaintextVector,
input: &Ciphertext
) -> Result<(), GlweCiphertextDiscardingDecryptionError<Self::EngineError>>
Decrypts a GLWE ciphertext .
sourceunsafe fn discard_decrypt_glwe_ciphertext_unchecked(
&mut self,
key: &SecretKey,
output: &mut PlaintextVector,
input: &Ciphertext
)
unsafe fn discard_decrypt_glwe_ciphertext_unchecked(
&mut self,
key: &SecretKey,
output: &mut PlaintextVector,
input: &Ciphertext
)
Unsafely decrypts a GLWE ciphertext .
Safety
For the general safety concerns regarding this operation, refer to the different variants
of GlweCiphertextDiscardingDecryptionError
. For safety concerns specific to an engine,
refer to the implementer safety section.
Implementors
impl GlweCiphertextDiscardingDecryptionEngine<GlweSecretKey32, GlweCiphertext32, PlaintextVector32> for DefaultEngine
Description:
Implementation of GlweCiphertextDiscardingDecryptionEngine
for DefaultEngine
that
operates on 32 bits integers.
impl GlweCiphertextDiscardingDecryptionEngine<GlweSecretKey64, GlweCiphertext64, PlaintextVector64> for DefaultEngine
Description:
Implementation of GlweCiphertextDiscardingDecryptionEngine
for DefaultEngine
that
operates on 64 bits integers.