Trait paillier::traits::Decryption
[−]
[src]
pub trait Decryption<DK, CT, PT> { fn decrypt(ek: &DK, c: &CT) -> PT; }
Decryption of ciphertext.
Required Methods
fn decrypt(ek: &DK, c: &CT) -> PT
Decrypt ciphertext c
using key dk
into a plaintext.
Implementors
impl<I, S> Decryption<DecryptionKey<I>, Ciphertext<I>, Plaintext<I>> for S where S: AbstractScheme<BigInteger=I>,
I: One,
I: ModularArithmetic,
&'a I: Sub<I, Output=I>,
I: Mul<&'b I, Output=I>,
I: Div<&'b I, Output=I>,
I: Rem<&'a I, Output=I>impl<I, S> Decryption<DecryptionKey<I>, Ciphertext<I>, Plaintext<I>> for S where S: AbstractScheme<BigInteger=I>,
I: One,
I: ModularArithmetic,
&'a I: Add<I, Output=I>,
&'a I: Sub<I, Output=I>,
&'a I: Sub<&'b I, Output=I>,
I: Mul<&'b I, Output=I>,
&'a I: Mul<&'b I, Output=I>,
I: Div<&'b I, Output=I>,
I: Rem<&'a I, Output=I>impl<I, T, S, DK> Decryption<DK, Ciphertext<I, T>, Plaintext<I, T>> for S where S: AbstractScheme<BigInteger=I>,
S: Decryption<DK, Ciphertext<I>, Plaintext<I>>impl<I, T, S, DK> Decryption<DK, Ciphertext<I, T>, Plaintext<I, T>> for S where S: AbstractScheme<BigInteger=I>,
S: Decryption<DK, Ciphertext<I>, Plaintext<I>>impl<'a, 'b, D: 'b, M, CT, S, DK: 'a> Decryption<DecodingDecryptionKey<'a, 'b, DK, D>, CT, M> for S where M: EncodableType,
D: Decoder<M>,
S: Decryption<DK, CT, D::Source>