Struct paillier::DecryptionKey
source · Expand description
Private decryption key.
Fields
p: BigIntq: BigIntTrait Implementations
sourceimpl Clone for DecryptionKey
impl Clone for DecryptionKey
sourcefn clone(&self) -> DecryptionKey
fn clone(&self) -> DecryptionKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for DecryptionKey
impl Debug for DecryptionKey
sourceimpl<'c, 'm> Decrypt<DecryptionKey, &'c RawCiphertext<'c>, RawPlaintext<'m>> for Paillier
impl<'c, 'm> Decrypt<DecryptionKey, &'c RawCiphertext<'c>, RawPlaintext<'m>> for Paillier
TODO
Efficient decryption using CRT based on Paillier99, section 7
sourcefn decrypt(dk: &DecryptionKey, c: &'c RawCiphertext<'c>) -> RawPlaintext<'m>
fn decrypt(dk: &DecryptionKey, c: &'c RawCiphertext<'c>) -> RawPlaintext<'m>
Decrypt ciphertext
c using key dk into a plaintext.sourceimpl<'c, 'm> Decrypt<DecryptionKey, RawCiphertext<'c>, RawPlaintext<'m>> for Paillier
impl<'c, 'm> Decrypt<DecryptionKey, RawCiphertext<'c>, RawPlaintext<'m>> for Paillier
TODO
Efficient decryption using CRT based on Paillier99, section 7
sourcefn decrypt(dk: &DecryptionKey, c: RawCiphertext<'c>) -> RawPlaintext<'m>
fn decrypt(dk: &DecryptionKey, c: RawCiphertext<'c>) -> RawPlaintext<'m>
Decrypt ciphertext
c using key dk into a plaintext.sourceimpl<'de> Deserialize<'de> for DecryptionKey
impl<'de> Deserialize<'de> for DecryptionKey
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'m, 'd> Encrypt<DecryptionKey, RawPlaintext<'m>, RawCiphertext<'d>> for Paillier
impl<'m, 'd> Encrypt<DecryptionKey, RawPlaintext<'m>, RawCiphertext<'d>> for Paillier
sourcefn encrypt(dk: &DecryptionKey, m: RawPlaintext<'m>) -> RawCiphertext<'d>
fn encrypt(dk: &DecryptionKey, m: RawPlaintext<'m>) -> RawCiphertext<'d>
Encrypt plaintext
m under key ek into a ciphertext.sourceimpl<'m, 'r, 'd> EncryptWithChosenRandomness<DecryptionKey, RawPlaintext<'m>, &'r PrecomputedRandomness, RawCiphertext<'d>> for Paillier
impl<'m, 'r, 'd> EncryptWithChosenRandomness<DecryptionKey, RawPlaintext<'m>, &'r PrecomputedRandomness, RawCiphertext<'d>> for Paillier
fn encrypt_with_chosen_randomness(
dk: &DecryptionKey,
m: RawPlaintext<'m>,
rn: &'r PrecomputedRandomness
) -> RawCiphertext<'d>
sourceimpl<'m, 'r, 'd> EncryptWithChosenRandomness<DecryptionKey, RawPlaintext<'m>, &'r Randomness, RawCiphertext<'d>> for Paillier
impl<'m, 'r, 'd> EncryptWithChosenRandomness<DecryptionKey, RawPlaintext<'m>, &'r Randomness, RawCiphertext<'d>> for Paillier
fn encrypt_with_chosen_randomness(
dk: &DecryptionKey,
m: RawPlaintext<'m>,
r: &'r Randomness
) -> RawCiphertext<'d>
sourceimpl<'e> From<&'e DecryptionKey> for MinimalDecryptionKey
impl<'e> From<&'e DecryptionKey> for MinimalDecryptionKey
sourcefn from(dk: &'e DecryptionKey) -> Self
fn from(dk: &'e DecryptionKey) -> Self
Converts to this type from the input type.
sourceimpl<'kp> From<&'kp Keypair> for DecryptionKey
impl<'kp> From<&'kp Keypair> for DecryptionKey
sourcefn from(keypair: &'kp Keypair) -> DecryptionKey
fn from(keypair: &'kp Keypair) -> DecryptionKey
Converts to this type from the input type.
sourceimpl<'e> From<MinimalDecryptionKey> for DecryptionKey
impl<'e> From<MinimalDecryptionKey> for DecryptionKey
sourcefn from(dk: MinimalDecryptionKey) -> Self
fn from(dk: MinimalDecryptionKey) -> Self
Converts to this type from the input type.
sourceimpl<'c, 'm> Open<DecryptionKey, &'c RawCiphertext<'c>, RawPlaintext<'m>, Randomness> for Paillier
impl<'c, 'm> Open<DecryptionKey, &'c RawCiphertext<'c>, RawPlaintext<'m>, Randomness> for Paillier
sourcefn open(
dk: &DecryptionKey,
c: &'c RawCiphertext<'c>
) -> (RawPlaintext<'m>, Randomness)
fn open(
dk: &DecryptionKey,
c: &'c RawCiphertext<'c>
) -> (RawPlaintext<'m>, Randomness)
Open ciphertext
c using key dk into a plaintext and a randomness.sourceimpl<'c, 'm> Open<DecryptionKey, RawCiphertext<'c>, RawPlaintext<'m>, Randomness> for Paillier
impl<'c, 'm> Open<DecryptionKey, RawCiphertext<'c>, RawPlaintext<'m>, Randomness> for Paillier
sourcefn open(
dk: &DecryptionKey,
c: RawCiphertext<'c>
) -> (RawPlaintext<'m>, Randomness)
fn open(
dk: &DecryptionKey,
c: RawCiphertext<'c>
) -> (RawPlaintext<'m>, Randomness)
Open ciphertext
c using key dk into a plaintext and a randomness.sourceimpl PartialEq<DecryptionKey> for DecryptionKey
impl PartialEq<DecryptionKey> for DecryptionKey
sourcefn eq(&self, other: &DecryptionKey) -> bool
fn eq(&self, other: &DecryptionKey) -> bool
sourceimpl Serialize for DecryptionKey
impl Serialize for DecryptionKey
impl StructuralPartialEq for DecryptionKey
Auto Trait Implementations
impl RefUnwindSafe for DecryptionKey
impl Send for DecryptionKey
impl Sync for DecryptionKey
impl Unpin for DecryptionKey
impl UnwindSafe for DecryptionKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more