[][src]Trait paillier_common::traits::Decrypt

pub trait Decrypt<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.

Loading content...

Implementors

impl<'c, 'm> Decrypt<DecryptionKey, &'c RawCiphertext<'c>, RawPlaintext<'m>> for Paillier[src]

TODO

Efficient decryption using CRT based on Paillier99, section 7

impl<'c, 'm> Decrypt<DecryptionKey, RawCiphertext<'c>, RawPlaintext<'m>> for Paillier[src]

TODO

Efficient decryption using CRT based on Paillier99, section 7

impl<DK, C> Decrypt<DK, C, u64> for Paillier where
    Self: Decrypt<DK, RawCiphertext<'c>, RawPlaintext<'p>>,
    C: Borrow<EncodedCiphertext<u64>>, 
[src]

impl<DK, C> Decrypt<DK, C, Vec<u64>> for Paillier where
    Self: Decrypt<DK, RawCiphertext<'c>, RawPlaintext<'p>>,
    C: Borrow<EncodedCiphertext<Vec<u64>>>, 
[src]

Loading content...