Struct paillier::DecryptionKey[][src]

pub struct DecryptionKey { /* fields omitted */ }

Private decryption key.

Trait Implementations

impl<'e> From<&'e DecryptionKey> for MinimalDecryptionKey
[src]

Performs the conversion.

impl<'e> From<MinimalDecryptionKey> for DecryptionKey
[src]

Performs the conversion.

impl<'kp> From<&'kp Keypair> for DecryptionKey
[src]

Performs the conversion.

impl Serialize for DecryptionKey
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for DecryptionKey
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<'m, 'd> Encrypt<DecryptionKey, RawPlaintext<'m>, RawCiphertext<'d>> for Paillier
[src]

Encrypt plaintext m under key ek into a ciphertext.

impl<'m, 'r, 'd> EncryptWithChosenRandomness<DecryptionKey, RawPlaintext<'m>, &'r Randomness, RawCiphertext<'d>> for Paillier
[src]

impl<'m, 'r, 'd> EncryptWithChosenRandomness<DecryptionKey, RawPlaintext<'m>, &'r PrecomputedRandomness, RawCiphertext<'d>> for Paillier
[src]

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

TODO

Efficient decryption using CRT based on Paillier99, section 7

Decrypt ciphertext c using key dk into a plaintext.

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

TODO

Efficient decryption using CRT based on Paillier99, section 7

Decrypt ciphertext c using key dk into a plaintext.

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

Open ciphertext c using key dk into a plaintext and a randomness.

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

Open ciphertext c using key dk into a plaintext and a randomness.

impl CorrectKey<EncryptionKey, DecryptionKey> for Paillier
[src]

Generate challenge for given encryption key.

Generate proof given decryption key.

Verify proof.

impl Clone for DecryptionKey
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DecryptionKey
[src]

Formats the value using the given formatter. Read more

impl PartialEq for DecryptionKey
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations