Struct paillier::RawPlaintext[][src]

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

Unencrypted message without type information.

Used mostly for internal purposes and advanced use-cases.

Trait Implementations

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

Performs the conversion.

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

Performs the conversion.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

impl<'b> Sync for RawPlaintext<'b>