pub struct Randomness(pub BigInt);Tuple Fields§
§0: BigIntImplementations§
Source§impl Randomness
impl Randomness
pub fn sample(ek: &EncryptionKey) -> Randomness
Trait Implementations§
Source§impl Debug for Randomness
impl Debug for Randomness
Source§impl<'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>
Source§impl<'m, 'r, 'd> EncryptWithChosenRandomness<EncryptionKey, RawPlaintext<'m>, &'r Randomness, RawCiphertext<'d>> for Paillier
impl<'m, 'r, 'd> EncryptWithChosenRandomness<EncryptionKey, RawPlaintext<'m>, &'r Randomness, RawCiphertext<'d>> for Paillier
fn encrypt_with_chosen_randomness( ek: &EncryptionKey, m: RawPlaintext<'m>, r: &'r Randomness, ) -> RawCiphertext<'d>
Source§impl<'b> From<&'b Mpz> for Randomness
impl<'b> From<&'b Mpz> for Randomness
Source§fn from(x: &'b BigInt) -> Randomness
fn from(x: &'b BigInt) -> Randomness
Converts to this type from the input type.
Source§impl From<Mpz> for Randomness
impl From<Mpz> for Randomness
Source§fn from(x: BigInt) -> Randomness
fn from(x: BigInt) -> Randomness
Converts to this type from the input type.
Source§impl<'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
Source§fn 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.Source§impl<'c, 'm> Open<DecryptionKey, RawCiphertext<'c>, RawPlaintext<'m>, Randomness> for Paillier
impl<'c, 'm> Open<DecryptionKey, RawCiphertext<'c>, RawPlaintext<'m>, Randomness> for Paillier
Source§fn 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.Source§impl PartialEq for Randomness
impl PartialEq for Randomness
impl StructuralPartialEq for Randomness
Auto Trait Implementations§
impl Freeze for Randomness
impl RefUnwindSafe for Randomness
impl Send for Randomness
impl Sync for Randomness
impl Unpin for Randomness
impl UnwindSafe for Randomness
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more