Struct paillier::EncryptionKey[][src]

pub struct EncryptionKey { /* fields omitted */ }

Public encryption key.

Trait Implementations

impl<'e> From<&'e EncryptionKey> for MinimalEncryptionKey
[src]

Performs the conversion.

impl<'e> From<MinimalEncryptionKey> for EncryptionKey
[src]

Performs the conversion.

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

Performs the conversion.

impl<'n> From<&'n BigInt> for EncryptionKey
[src]

Performs the conversion.

impl Serialize for EncryptionKey
[src]

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

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

Encrypt plaintext m under key ek into a ciphertext.

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

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

impl<'ek, 'r> PrecomputeRandomness<&'ek EncryptionKey, &'r BigInt, PrecomputedRandomness> for Paillier
[src]

impl<'c, 'd> Rerandomize<EncryptionKey, RawCiphertext<'c>, RawCiphertext<'d>> for Paillier
[src]

Rerandomise ciphertext c to hide any history of which homomorphic operations were used to compute it, making it look exactly like a fresh encryption of the same plaintext. Read more

impl<'c1, 'c2, 'd> Add<EncryptionKey, RawCiphertext<'c1>, RawCiphertext<'c2>, RawCiphertext<'d>> for Paillier
[src]

Homomorphically combine ciphertexts c1 and c2 to obtain a ciphertext containing the sum of the two underlying plaintexts, reduced modulus n from ek. Read more

impl<'c, 'm, 'd> Add<EncryptionKey, RawCiphertext<'c>, RawPlaintext<'m>, RawCiphertext<'d>> for Paillier
[src]

Homomorphically combine ciphertexts c1 and c2 to obtain a ciphertext containing the sum of the two underlying plaintexts, reduced modulus n from ek. Read more

impl<'c, 'm, 'd> Add<EncryptionKey, RawPlaintext<'m>, RawCiphertext<'c>, RawCiphertext<'d>> for Paillier
[src]

Homomorphically combine ciphertexts c1 and c2 to obtain a ciphertext containing the sum of the two underlying plaintexts, reduced modulus n from ek. Read more

impl<'c, 'm, 'd> Mul<EncryptionKey, RawCiphertext<'c>, RawPlaintext<'m>, RawCiphertext<'d>> for Paillier
[src]

Homomorphically combine ciphertext c1 and plaintext m2 to obtain a ciphertext containing the multiplication of the (underlying) plaintexts, reduced modulus n from ek. Read more

impl<'c, 'm, 'd> Mul<EncryptionKey, RawPlaintext<'m>, RawCiphertext<'c>, RawCiphertext<'d>> for Paillier
[src]

Homomorphically combine ciphertext c1 and plaintext m2 to obtain a ciphertext containing the multiplication of the (underlying) plaintexts, reduced modulus n from ek. Read more

impl<'m, 'r, 'c, R, CT> CorrectOpening<EncryptionKey, RawPlaintext<'m>, &'r R, &'c CT> for Paillier where
    Self: EncryptWithChosenRandomness<EncryptionKey, RawPlaintext<'m>, &'r R, CT>,
    CT: PartialEq
[src]

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

Generate challenge for given encryption key.

Generate proof given decryption key.

Verify proof.

impl Clone for EncryptionKey
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for EncryptionKey
[src]

Formats the value using the given formatter. Read more

impl PartialEq for EncryptionKey
[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