Struct paillier::RawCiphertext[][src]

pub struct RawCiphertext<'b>(pub Cow<'b, BigInt>);

Encrypted message without type information.

Used mostly for internal purposes and advanced use-cases.

Trait Implementations

impl<'b> From<BigInt> for RawCiphertext<'b>
[src]

Performs the conversion.

impl<'b> From<&'b BigInt> for RawCiphertext<'b>
[src]

Performs the conversion.

impl<'b> From<RawCiphertext<'b>> for BigInt
[src]

Performs the conversion.

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<'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, '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<'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<'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<'b> Clone for RawCiphertext<'b>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'b> Debug for RawCiphertext<'b>
[src]

Formats the value using the given formatter. Read more

impl<'b> PartialEq for RawCiphertext<'b>
[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

impl<'b> Send for RawCiphertext<'b>

impl<'b> Sync for RawCiphertext<'b>